rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
final VmCompiledCode cc = method.getCompiledCode();
final VmCompiledCode cc = method.getCompiledCode(magic);
public static Address findThrowableHandler(Throwable ex, Address frame, Address address) { try { if (ex == null) { Unsafe.debug("NPE"); throw new NullPointerException(); } if (frame == null) { Unsafe.debug("frame==null")...
public PrintStream (OutputStream out, boolean auto_flush)
public PrintStream (File file) throws FileNotFoundException
public PrintStream (OutputStream out, boolean auto_flush) { super (out); try { this.encoding = System.getProperty("file.encoding"); } catch (SecurityException e){ this.encoding = "ISO8859_1"; } catch (IllegalArgumentException e){ this.encoding = "ISO8859_1"; } catch (NullPointerException e){ this.enco...
super (out); try { this.encoding = System.getProperty("file.encoding"); } catch (SecurityException e){ this.encoding = "ISO8859_1"; } catch (IllegalArgumentException e){ this.encoding = "ISO8859_1"; } catch (NullPointerException e){ this.encoding = "ISO8859_1"; } this.auto_flush = auto_flush;
this (new FileOutputStream(file), false);
public PrintStream (OutputStream out, boolean auto_flush) { super (out); try { this.encoding = System.getProperty("file.encoding"); } catch (SecurityException e){ this.encoding = "ISO8859_1"; } catch (IllegalArgumentException e){ this.encoding = "ISO8859_1"; } catch (NullPointerException e){ this.enco...
if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); } int parent_width = bounds.width; CalculatedStyle style = c.getCurrentStyle(); Bord...
if (pendingPushStyles != null && pendingPushStyles.size() != 0) { pendingPushStyles.removeLast(); } else { if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line....
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
new_inline.pushstyles = pendingPushStyles; pendingPushStyles = null;
public static void layoutContent(LayoutContext c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bo...
dragWindow.setOffset(new Point(e.getX(), e.getY()));
dragWindow.setOffset(new Point(cachedBounds.width/2, cachedBounds.height/2));
public void mousePressed(MouseEvent e) { if (! toolBar.isFloatable()) return; Point ssd = e.getPoint(); Insets insets = toolBar.getInsets(); // Verify that this click occurs in the top inset. if (toolBar.getOrientation() == SwingConstants.HORIZONTAL) { if (e.getX() > insets.left...
public CascadedStyle(java.util.Iterator iter) {
CascadedStyle(java.util.Iterator iter) {
public CascadedStyle(java.util.Iterator iter) { this(); //do a bucket-sort on importance and origin //properties should already be in order of specificity java.util.List[] buckets = new java.util.List[PropertyDeclaration.IMPORTANCE_AND_ORIGIN_COUNT]; for (int i = 0; i < buckets.le...
if (image == null) return -1;
public int getIconHeight() { return image.getHeight(observer); }
if (image == null) return -1;
public int getIconWidth() { return image.getWidth(observer); }
Uu.p("dispatching an initial resize event"); queue.dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, this.getSize()));
public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } //Uu.p("paint component () cal...
if (doc != null)
/* do we need this? if (doc != null && body_box != null) { if(body_box.width != d.width)
public void setSize(Dimension d) { XRLog.layout(Level.FINEST, "set size called"); super.setSize(d); if (doc != null) RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, d)); }
} */
public void setSize(Dimension d) { XRLog.layout(Level.FINEST, "set size called"); super.setSize(d); if (doc != null) RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, d)); }
File toSave = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, WorkflowDesigner.WORKSPACE_SUFFIX, "Workspace Files");
File toSave = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, WorkflowDesigner.WORKSPACE_SUFFIX, ResourceManager.getString("workspace.files"));
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation()==null) { File toSave = Utils.promptUserForFile((Component)e.getSource(), JFileChooser.FILES_AND_DIRECTORIES, true, WorkflowDesigner.WORKSPACE_SUFFIX, "Workspace Files"); if(toSave!=null) { currentWorkspace.setL...
if (log.isTraceEnabled()) { log.trace("handle(" + r + ")"); }
public Delivery handle(Routable r) { // Mark the message as being received from a remote endpoint r.putHeader(Routable.REMOTE_ROUTABLE, Routable.REMOTE_ROUTABLE); Delivery d = receiver.handle(null, r, null); // we only accept synchronous deliveries at this point if (d != null && !d.isDone(...
log.info("del count2:" + tm.getIntProperty("JMSXDeliveryCount"));
public void testRedeliveredQueue2() throws Exception { Connection conn = null; try { conn = cf.createConnection(); Session sendSession = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sendSession.createProducer(queue); prod.send(sendSessio...
ServerSessionEndpoint(String sessionID, ServerConnectionEndpoint connectionEndpoint,
ServerSessionEndpoint(int sessionID, ServerConnectionEndpoint connectionEndpoint,
ServerSessionEndpoint(String sessionID, ServerConnectionEndpoint connectionEndpoint, int acknowledgmentMode) { this.sessionID = sessionID; this.acknowledgmentMode = acknowledgmentMode; this.connectionEndpoint = connectionEndpoint; ServerPeer sp = connectionEndpoint.getServerPeer(); dm ...
if (log.isTraceEnabled()) { log.trace("Cancelling messages"); }
if (trace) { log.trace("Cancelling messages"); }
public void cancelDeliveries() throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (log.isTraceEnabled()) { log.trace("Cancelling messages"); } for(Iterator i = this.consumers.values().iterator(); i.hasNext(); ) { ServerConsum...
if (log.isTraceEnabled()) log.trace("close()");
if (trace) log.trace("close()");
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Session is already closed"); } if (log.isTraceEnabled()) log.trace("close()"); // clone to avoid ConcurrentModificationException HashSet consumerSet = new HashSet(consume...
connectionEndpoint.sessions.remove(this.sessionID);
connectionEndpoint.sessions.remove(Integer.valueOf(sessionID));
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Session is already closed"); } if (log.isTraceEnabled()) log.trace("close()"); // clone to avoid ConcurrentModificationException HashSet consumerSet = new HashSet(consume...
Dispatcher.singleton.unregisterTarget(this.sessionID);
JMSDispatcher.instance.unregisterTarget(Integer.valueOf(sessionID));
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Session is already closed"); } if (log.isTraceEnabled()) log.trace("close()"); // clone to avoid ConcurrentModificationException HashSet consumerSet = new HashSet(consume...
if (log.isTraceEnabled()) log.trace("closing (noop)");
if (trace) log.trace("closing (noop)");
public void closing() throws JMSException { if (log.isTraceEnabled()) log.trace("closing (noop)"); //Currently does nothing }
String browserID = new GUID().toString();
int browserID = connectionEndpoint.serverPeer.getNextObjectID();
public BrowserDelegate createBrowserDelegate(Destination jmsDestination, String messageSelector) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination == null) { throw new InvalidDestinationException("null destination"); } ...
Dispatcher.singleton.registerTarget(browserID, new BrowserAdvised(ep));
JMSDispatcher.instance.registerTarget(Integer.valueOf(browserID), new BrowserAdvised(ep));
public BrowserDelegate createBrowserDelegate(Destination jmsDestination, String messageSelector) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination == null) { throw new InvalidDestinationException("null destination"); } ...
if (log.isTraceEnabled()) { log.trace("creating consumer endpoint for " + d + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName); }
if (trace) { log.trace("creating consumer endpoint for " + d + ", selector " + selector + ", " + (noLocal ? "noLocal, " : "") + "subscription " + subscriptionName); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
String consumerID = new GUID().toString();
int consumerID = connectionEndpoint.serverPeer.getNextObjectID();
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
if (callbackHandler == null) { throw new JMSException("null callback handler"); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
if (log.isTraceEnabled()) { log.trace("creating new durable subscription on " + coreDestination); }
if (trace) { log.trace("creating new durable subscription on " + coreDestination); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
if (log.isTraceEnabled()) { log.trace("subscription " + subscriptionName + " already exists"); }
if (trace) { log.trace("subscription " + subscriptionName + " already exists"); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
if (log.isTraceEnabled()) { log.trace("selector " + (selectorChanged ? "has" : "has NOT") + " changed"); }
if (trace) { log.trace("selector " + (selectorChanged ? "has" : "has NOT") + " changed"); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
if (log.isTraceEnabled()) { log.trace("topic or selector or noLocal changed so deleting old subscription"); }
if (trace) { log.trace("topic or selector or noLocal changed so deleting old subscription"); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
callbackHandler, this, selector, noLocal);
this, selector, noLocal);
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
Dispatcher.singleton.registerTarget(consumerID, new ConsumerAdvised(ep));
JMSDispatcher.instance.registerTarget(Integer.valueOf(consumerID), new ConsumerAdvised(ep));
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
connectionEndpoint.consumers.put(consumerID, ep);
connectionEndpoint.consumers.put(Integer.valueOf(consumerID), ep);
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ...
String producerID = new GUID().toString();
int producerID = connectionEndpoint.serverPeer.getNextObjectID();
public ProducerDelegate createProducerDelegate(Destination jmsDestination) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination != null) { if (dm.getCoreDestination(jmsDestination) == null) { ...
Dispatcher.singleton.registerTarget(producerID, producerAdvised);
JMSDispatcher.instance.registerTarget(Integer.valueOf(producerID), producerAdvised);
public ProducerDelegate createProducerDelegate(Destination jmsDestination) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (jmsDestination != null) { if (dm.getCoreDestination(jmsDestination) == null) { ...
public ServerBrowserEndpoint getBrowserDelegate(String browserID)
public ServerBrowserEndpoint getBrowserDelegate(int browserID)
public ServerBrowserEndpoint getBrowserDelegate(String browserID) { return (ServerBrowserEndpoint)browsers.get(browserID); }
return (ServerBrowserEndpoint)browsers.get(browserID);
return (ServerBrowserEndpoint)browsers.get(Integer.valueOf(browserID));
public ServerBrowserEndpoint getBrowserDelegate(String browserID) { return (ServerBrowserEndpoint)browsers.get(browserID); }
public ServerConsumerEndpoint getConsumerDelegate(String consumerID)
public ServerConsumerEndpoint getConsumerDelegate(int consumerID)
public ServerConsumerEndpoint getConsumerDelegate(String consumerID) { return (ServerConsumerEndpoint)consumers.get(consumerID); }
return (ServerConsumerEndpoint)consumers.get(consumerID);
return (ServerConsumerEndpoint)consumers.get(Integer.valueOf(consumerID));
public ServerConsumerEndpoint getConsumerDelegate(String consumerID) { return (ServerConsumerEndpoint)consumers.get(consumerID); }
public ServerProducerEndpoint getProducerDelegate(String producerID)
public ServerProducerEndpoint getProducerDelegate(int producerID)
public ServerProducerEndpoint getProducerDelegate(String producerID) { return (ServerProducerEndpoint)producers.get(producerID); }
return (ServerProducerEndpoint)producers.get(producerID);
return (ServerProducerEndpoint)producers.get(Integer.valueOf(producerID));
public ServerProducerEndpoint getProducerDelegate(String producerID) { return (ServerProducerEndpoint)producers.get(producerID); }
protected ServerBrowserEndpoint putBrowserDelegate(String browserID, ServerBrowserEndpoint sbd)
protected ServerBrowserEndpoint putBrowserDelegate(int browserID, ServerBrowserEndpoint sbd)
protected ServerBrowserEndpoint putBrowserDelegate(String browserID, ServerBrowserEndpoint sbd) { return (ServerBrowserEndpoint)browsers.put(browserID, sbd); }
return (ServerBrowserEndpoint)browsers.put(browserID, sbd);
return (ServerBrowserEndpoint)browsers.put(Integer.valueOf(browserID), sbd);
protected ServerBrowserEndpoint putBrowserDelegate(String browserID, ServerBrowserEndpoint sbd) { return (ServerBrowserEndpoint)browsers.put(browserID, sbd); }
protected ServerConsumerEndpoint putConsumerDelegate(String consumerID, ServerConsumerEndpoint d)
protected ServerConsumerEndpoint putConsumerDelegate(int consumerID, ServerConsumerEndpoint d)
protected ServerConsumerEndpoint putConsumerDelegate(String consumerID, ServerConsumerEndpoint d) { return (ServerConsumerEndpoint)consumers.put(consumerID, d); }
return (ServerConsumerEndpoint)consumers.put(consumerID, d);
return (ServerConsumerEndpoint)consumers.put(Integer.valueOf(consumerID), d);
protected ServerConsumerEndpoint putConsumerDelegate(String consumerID, ServerConsumerEndpoint d) { return (ServerConsumerEndpoint)consumers.put(consumerID, d); }
protected ServerProducerEndpoint putProducerDelegate(String producerID, ServerProducerEndpoint d)
protected ServerProducerEndpoint putProducerDelegate(int producerID, ServerProducerEndpoint d)
protected ServerProducerEndpoint putProducerDelegate(String producerID, ServerProducerEndpoint d) { return (ServerProducerEndpoint)producers.put(producerID, d); }
return (ServerProducerEndpoint)producers.put(producerID, d);
return (ServerProducerEndpoint)producers.put(Integer.valueOf(producerID), d);
protected ServerProducerEndpoint putProducerDelegate(String producerID, ServerProducerEndpoint d) { return (ServerProducerEndpoint)producers.put(producerID, d); }
return "SessionEndpoint[" + Util.guidToString(sessionID) + "]";
return "SessionEndpoint[" + sessionID + "]";
public String toString() { return "SessionEndpoint[" + Util.guidToString(sessionID) + "]"; }
if (contentList == null) { return box;
if (contentList != null && contentList.size() > 0) { c.pushParentContent(content); if (ContentUtil.hasBlockContent(contentList)) { BlockBoxing.layoutContent(c, box, contentList, box); } else { InlineBoxing.layoutContent(c, box, contentList); } c.popParentContent();
public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do thi...
if (contentList.size() == 0) { return box; }
public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do thi...
c.pushParentContent(content); if (ContentUtil.hasBlockContent(contentList)) { BlockBoxing.layoutContent(c, box, contentList, box); } else { InlineBoxing.layoutContent(c, box, contentList); } c.popParentContent();
public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(Box.CHILDREN_FLUX); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do thi...
if (box.isInlineElement() || !(box.content instanceof TextContent)) {
if (isBlockOrInlineElementBox(box)) {
public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border ...
shutdownLogger = (ShutdownLogger)mbeanServer. getAttribute(shutdownLoggerObjectName, "Instance");
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
crashed = shutdownLogger.startup(serverPeerID);
public synchronized void startService() throws Exception { try { if (started) { return; } log.debug(this + " starting"); if (queuedExecutorPoolSize < 1) { throw new IllegalArgumentException("queuedExecutorPoolSize mus...
shutdownLogger.shutdown(serverPeerID);
public synchronized void stopService() throws Exception { try { if (!started) { return; } log.debug(this + " stopping"); started = false; //removeRecoverable(); shutdownLogger.shutdown(serverPeerID); ...
throw new JMSException("Only JMSXGroupId and JMSXGroupSeq are supported");
throw new JMSException("Can only set JMSXGroupId, JMSXGroupSeq");
void checkProperty(String name, Object value) throws JMSException { if (name == null) throw new IllegalArgumentException("The name of a property must not be null."); if (name.equals("")) throw new IllegalArgumentException("The name of a property must not be an empty String."); if (St...
if ("JMSXDeliveryCount".equals(name)) { return deliveryCount; }
public int getIntProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).intValue(); else if (value instanceo...
Enumeration names = Collections.enumeration(properties.keySet());
HashSet set = new HashSet(); set.addAll(properties.keySet()); set.add("JMSXDeliveryCount"); Enumeration names = Collections.enumeration(set);
public Enumeration getPropertyNames() throws JMSException { Enumeration names = Collections.enumeration(properties.keySet()); return names; }
return properties.containsKey(name);
return properties.containsKey(name) || "JMSXDeliveryCount".equals(name);
public boolean propertyExists(String name) throws JMSException { return properties.containsKey(name); }
if (protocol == null)
if (protocol == null) {
public String getName() { if (protocol == null) return "No Mouse"; return protocol.getName(); }
}
public String getName() { if (protocol == null) return "No Mouse"; return protocol.getName(); }
public PointerEvent handleScancode(int scancode) { if (protocol == null)
public synchronized PointerEvent handleScancode(int scancode) { if (protocol == null) {
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
if (pos != 0)
if (pos != 0) {
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
PointerEvent event = protocol.buildEvent(data);
final PointerEvent event = protocol.buildEvent(data);
public PointerEvent handleScancode(int scancode) { if (protocol == null) return null; // build the data block data[pos++] = (byte) (scancode & 0xff); pos %= data.length; if (pos != 0) return null; // this debug output is for debugging the mouse protocol /* * String line = ""; for( int i = 0; i < data.leng...
for (Iterator i = protocols.iterator(); i.hasNext();) { final MouseProtocol p = (MouseProtocol) i.next();
for (Iterator i = protocolsHandlers.iterator(); i.hasNext();) { final MouseProtocolHandler p = (MouseProtocolHandler) i.next();
public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret...
return null;
return getClass() + " [Source: " + getSource() + ", TreePath: " + getTreePath() + ", Child Indicies: " + getChildIndices() + ", Children: " + getChildren() + ", Path: " + getPath() +"]";
public String toString() { return null; // TODO } // toString()
throw new JBossJMSException("null callback handler");
throw new JMSException("null callback handler");
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
if (subscription != null && subscription.hasConsumer()) { throw new JMSException("There is already an active subscriber for this durable subscription"); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
if (this.connectionEndpoint.started) { scd.setStarted(true); }
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName) throws JMSException { // look-...
log.info(this + " remnoving all references");
public void removeAllReferences() throws Throwable { synchronized (refLock) { synchronized (deliveryLock) { //Ack the deliveries //Clone to avoid ConcurrentModificationException Set dels = new HashSet(deliveries); Iterator iter = dels.iterator()...
assertEquals("chain", rmr.getResolver().getName());
assertEquals("2", rmr.getResolver().getName()); assertEquals("chain", rmr.getArtifactResolver().getName());
public void testDual() throws Exception { ChainResolver chain = new ChainResolver(); chain.setName("chain"); chain.setIvy(_ivy); chain.setDual(true); MockResolver[] resolvers = new MockResolver[] { MockResolver.buildMockResolver("1", false, null), Mo...
"jms", "org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager");
"jms", "org.jboss.jms.server.remoting.MessagingSerializationManager");
private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName( ...
if (myalign == LEFT) x = ins.left + hgap;
if (myalign == RIGHT) x = ins.left + (d.width - new_w) + hgap;
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
else x = ins.left + (d.width - new_w) + hgap;
else x = ins.left + hgap;
public void layoutContainer (Container parent) { synchronized (parent.getTreeLock ()) { int num = parent.getComponentCount (); // This is more efficient than calling getComponents(). Component[] comps = parent.component; Dimension d = parent.getSize (); Insets ins = parent.getInsets (); ComponentOrientation ...
if (align != LEFT && align != RIGHT && align != CENTER && align != LEADING && align != TRAILING) throw new IllegalArgumentException ("invalid alignment: " + align);
public void setAlignment (int align) { if (align != LEFT && align != RIGHT && align != CENTER && align != LEADING && align != TRAILING) throw new IllegalArgumentException ("invalid alignment: " + align); this.align = align; }
return null;
Font font = super.getFont(); if (font == null) { Component parent = getParent(); if (parent != null) return parent.getFont(); return null; } return font;
public Font getFont() { return null; // TODO }
return null;
String s = getText(); Font f = getFont(); if (f != null) { FontMetrics fm = getToolkit().getFontMetrics(f); return new Dimension(SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } return renderer.getPreferredSize();
public Dimension getPreferredSize() { return null; // TODO }
if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout();
public void doLayout() { // TODO }
return null;
Dimension containerSize = super.getPreferredSize(); containerSize.width += DefaultTreeCellEditor.this.offset; return containerSize;
public Dimension getPreferredSize() { return null; // TODO }
public void paint(Graphics value0)
public void paint(Graphics g)
public void paint(Graphics value0) { // TODO }
int textIconGap = 4; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((JComponent) editingComponent), fm, ((JTextField) editingComponent).getText(), editingIcon, ...
public void paint(Graphics value0) { // TODO }
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1)
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer)
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) { // TODO }
this(tree, renderer, null);
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) { // TODO }
public void actionPerformed(ActionEvent value0)
public void actionPerformed(ActionEvent e)
public void actionPerformed(ActionEvent value0) { // TODO }
if (tree != null && lastPath != null) tree.startEditingAtPath(lastPath);
public void actionPerformed(ActionEvent value0) { // TODO }
protected boolean canEditImmediately(EventObject value0)
protected boolean canEditImmediately(EventObject event)
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
return false;
if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (shouldStartEditingTimer(event)) startEditingTimer(); return false;
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null);
public void cancelCellEditing() { // TODO }
return null;
return new DefaultTreeCellEditor.EditorContainer();
protected Container createContainer() { return null; // TODO }
return null;
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); canEdit = true; return realEditor;
protected TreeCellEditor createTreeCellEditor() { return null; // TODO }
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5)
protected void determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(); if (c != null) offset = renderer.getIconTextGap() + c.getIconWidth(); else offset = 0;
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
return null;
return borderSelectionColor;
public Color getBorderSelectionColor() { return null; // TODO }
return null;
return editingComponent;
public Object getCellEditorValue() { return null; // TODO }
return null;
return font;
public Font getFont() { return null; // TODO }
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5)
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
return null;
if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row); if (tree != null && editingComponent != null) if (tree.isEditing()) tree.stopEditing(); return c;
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
protected boolean inHitRegion(int value0, int value1)
protected boolean inHitRegion(int x, int y)
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
return false;
Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; return false;
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
public boolean isCellEditable(EventObject value0)
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.isCellEditable(event))
public boolean isCellEditable(EventObject value0) { return false; // TODO }