rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public InvokeHandler servantToHandler(Servant servant)
public InvokeHandler servantToHandler(Servant a_servant)
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant);
if (a_servant instanceof InvokeHandler) { return (InvokeHandler) a_servant; } else if (a_servant instanceof DynamicImplementation) { return new dynImpHandler((DynamicImplementation) a_servant); }
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
throw new BAD_OPERATION(servant + " must be either InvokeHandler or " + "POA DynamicImplementation"
{ throw new BAD_OPERATION(a_servant + " must be either InvokeHandler or " + "POA DynamicImplementation"
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
}
public InvokeHandler servantToHandler(Servant servant) { if (servant instanceof InvokeHandler) return (InvokeHandler) servant; else if (servant instanceof DynamicImplementation) return new dynImpHandler((DynamicImplementation) servant); else throw new BAD_OPERATION(servant + " must be either ...
catch (Exception e)
catch (Throwable t)
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { o.notifyAll(); } }
exception = e;
throwable = t; if (t instanceof Exception) exception = (Exception)t;
public void dispatch() { if (catchExceptions) try { runnable.run(); } catch (Exception e) { exception = e; } else runnable.run(); Object o = notifier; if (o != null) synchronized(o) { o.notifyAll(); } }
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return PrintQuality.class; }
public final String getName()
public String getName()
public final String getName() { return "print-quality"; }
public TextArea() { this("", 1, 1, SCROLLBARS_BOTH);
public TextArea () { this ("", 0, 0, SCROLLBARS_BOTH);
public TextArea() { this("", 1, 1, SCROLLBARS_BOTH); }
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextArea(this));
public void addNotify () { if (getPeer () == null) setPeer ((ComponentPeer) getToolkit().createTextArea (this));
public void addNotify() { if (getPeer() != null) return; setPeer((ComponentPeer) getToolkit().createTextArea(this)); }
public void append(String str) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(str, tap.getText().length());
public void append (String str) { appendText (str);
public void append(String str) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(str, tap.getText().length()); }
public void appendText(String text) { append(text); }
public void appendText (String str) { TextAreaPeer peer = (TextAreaPeer) getPeer (); if (peer != null) peer.insert (str, peer.getText().length ()); }
public void appendText(String text) { append(text); }
public int getColumns() { return (columns);
public int getColumns () { return columns;
public int getColumns() { return (columns); }
public Dimension getMinimumSize() { return (getMinimumSize(getRows(), getColumns()));
public Dimension getMinimumSize () { return getMinimumSize (getRows (), getColumns ());
public Dimension getMinimumSize() { return (getMinimumSize(getRows(), getColumns())); }
public Dimension getPreferredSize() { return (getPreferredSize(getRows(), getColumns()));
public Dimension getPreferredSize () { return getPreferredSize (getRows (), getColumns ());
public Dimension getPreferredSize() { return (getPreferredSize(getRows(), getColumns())); }
public int getRows() { return (rows);
public int getRows () { return rows;
public int getRows() { return (rows); }
public int getScrollbarVisibility() { return (scrollbarVisibility);
public int getScrollbarVisibility () { return scrollbarVisibility;
public int getScrollbarVisibility() { return (scrollbarVisibility); }
public void insert(String text, int pos) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(text, pos);
public void insert (String str, int pos) { insertText (str, pos);
public void insert(String text, int pos) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.insert(text, pos); }
public void insertText(String text, int pos) { insert(text, pos); }
public void insertText (String str, int pos) { TextAreaPeer peer = (TextAreaPeer) getPeer (); if (peer != null) peer.insert (str, pos); }
public void insertText(String text, int pos) { insert(text, pos); }
public Dimension minimumSize() { return (getMinimumSize(getRows(), getColumns()));
public Dimension minimumSize () { return minimumSize (getRows (), getColumns ());
public Dimension minimumSize() { return (getMinimumSize(getRows(), getColumns())); }
protected String paramString() { return (getClass().getName() + "(rows=" + getRows() + ",columns=" + getColumns() + ",scrollbars=" + getScrollbarVisibility() + ")");
protected String paramString () { String sbVisibility = ""; switch (scrollbarVisibility) { case SCROLLBARS_BOTH: sbVisibility = "both"; break; case SCROLLBARS_VERTICAL_ONLY: sbVisibility = "vertical-only"; break; case SCROLLBARS_HORIZONTAL_ONLY: sbVisibility = "horizontal-only"; break; case SCROLLBARS_NONE: sbVisibili...
protected String paramString() { return (getClass().getName() + "(rows=" + getRows() + ",columns=" + getColumns() + ",scrollbars=" + getScrollbarVisibility() + ")"); }
String editable = ""; if (isEditable ()) editable = "editable,"; return getName () + "," + getX () + "," + getY () + "," + getWidth () + "x" + getHeight () + "," + "text=" + getText () + "," + editable + "selection=" + getSelectionStart () + "-" + getSelectionEnd () + ",rows=" + rows + ",columns=" + columns + ",scroll...
protected String paramString() { return (getClass().getName() + "(rows=" + getRows() + ",columns=" + getColumns() + ",scrollbars=" + getScrollbarVisibility() + ")"); }
public Dimension preferredSize() { return (getPreferredSize(getRows(), getColumns()));
public Dimension preferredSize () { return preferredSize (getRows (), getColumns ());
public Dimension preferredSize() { return (getPreferredSize(getRows(), getColumns())); }
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end);
public void replaceRange (String str, int start, int end) { replaceText (str, start, end);
public void replaceRange(String text, int start, int end) { TextAreaPeer tap = (TextAreaPeer) getPeer(); if (tap == null) return; tap.replaceRange(text, start, end); }
public void replaceText(String text, int start, int end) { replaceRange(text, start, end); }
public void replaceText (String str, int start, int end) { TextAreaPeer peer = (TextAreaPeer) getPeer (); if (peer != null) peer.replaceRange (str, start, end); }
public void replaceText(String text, int start, int end) { replaceRange(text, start, end); }
arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch);
arch = vm.getArch().getName();
public static Properties getInitProperties() { final String arch; final Vm vm = Vm.getVm(); arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1...
throw new IllegalArgumentException("Wrong format for private keys");
throw new InvalidParameterException("Wrong format for private keys");
public PrivateKey decodePrivateKey(byte[] input) { throw new IllegalArgumentException("Wrong format for private keys"); }
throw new IllegalArgumentException("Wrong format for private keys");
throw new InvalidParameterException("Wrong format for private keys");
public byte[] encodePrivateKey(PrivateKey key) { throw new IllegalArgumentException("Wrong format for private keys"); }
ORB orb = Restricted_ORB.Singleton;
ORB orb = OrbRestricted.Singleton;
public static TypeCode type() { ORB orb = Restricted_ORB.Singleton; return orb.create_alias_tc(id(), "RepositoryId", orb.create_string_tc(0)); }
throw new ParseException("invalid Date syntax", index);
throw new ParseException("invalid Date syntax in \"" + source + '\"', index);
public Date parse (String source) throws ParseException { ParsePosition pos = new ParsePosition(0); Date result = parse (source, pos); if (result == null) { int index = pos.getErrorIndex(); if (index < 0) index = pos.getIndex(); throw new ParseException("invalid Date syntax", index); } return...
if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; }
selectionModel = model;
public void setSelectionModel(SingleSelectionModel model) { if (selectionModel != model) { SingleSelectionModel oldModel = this.selectionModel; } }
return new DomAttr(this, null, name);
DomAttr ret = new DomAttr(this, null, name); ret.localName = null; return ret;
public Attr createAttribute(String name) { if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { return createAttributeNS(XMLConstants.XML_NS_URI, name); } else if (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.st...
element = new DomElement(this, null, name);
DomElement domElement = new DomElement(this, null, name); domElement.localName = null; element = domElement;
public Element createElement(String name) { Element element; if (checkingCharacters) { checkName(name, "1.1".equals(version)); } if (name.startsWith("xml:")) { element = createElementNS(null, name); } else { element = new DomElement(this, null, name); ...
return getDepth(c1) - getDepth(c2);
Rectangle d2 = (Rectangle) dirtyComponents.get(c2); return d2.width * d2.height - d1.width * d1.height;
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat...
else
public int compare(Object o1, Object o2) { if (o1 instanceof JComponent && o2 instanceof JComponent) { JComponent c1 = (JComponent) o1; JComponent c2 = (JComponent) o2; return getDepth(c1) - getDepth(c2); } else throw new ClassCastException("This comparat...
setLive(false);
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
finally { setLive(false); } }
public void run() { ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager rm = (RepaintManager) currentRepaintManagers.get(threadGroup); setLive(false); rm.validateInvalidComponents(); rm.paintDirtyRegions(); }
workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList();
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa...
workInvalidComponents = new ArrayList();
public RepaintManager() { dirtyComponents = new HashMap(); workDirtyComponents = new HashMap(); repaintOrder = new ArrayList(); workRepaintOrder = new ArrayList(); invalidComponents = new ArrayList(); workInvalidComponents = new ArrayList(); repaintWorker = new RepaintWorker(); doubleBufferMa...
public synchronized void addDirtyRegion(JComponent component, int x, int y,
public void addDirtyRegion(JComponent component, int x, int y,
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
if (w == 0 || h == 0 || !component.isShowing())
if (w <= 0 || h <= 0 || !component.isShowing())
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
r = r.union((Rectangle)dirtyComponents.get(component)); else insertInRepaintOrder(component);
r = r.union((Rectangle) dirtyComponents.get(component)); synchronized (dirtyComponents) {
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
}
public synchronized void addDirtyRegion(JComponent component, int x, int y, int w, int h) { if (w == 0 || h == 0 || !component.isShowing()) return; Rectangle r = new Rectangle(x, y, w, h); if (dirtyComponents.containsKey(component)) r = r.union((Rectangle)d...
public synchronized void addInvalidComponent(JComponent component)
public void addInvalidComponent(JComponent component)
public synchronized void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null ...
}
public synchronized void addInvalidComponent(JComponent component) { Component ancestor = component.getParent(); while (ancestor != null && (! (ancestor instanceof JComponent) || ! ((JComponent) ancestor).isValidateRoot() )) ancestor = ancestor.getParent(); if (ancestor != null ...
synchronized (this)
synchronized (dirtyComponents)
public void markCompletelyClean(JComponent component) { synchronized (this) { dirtyComponents.remove(component); } component.isCompletelyDirty = false; }
public synchronized void paintDirtyRegions()
public void paintDirtyRegions()
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
synchronized(this) { ArrayList swap = workRepaintOrder; workRepaintOrder = repaintOrder; repaintOrder = swap; HashMap swap2 = workDirtyComponents; workDirtyComponents = dirtyComponents; dirtyComponents = swap2; } for (Iterator i = workRepaintOrder.iterator(); i.hasNext();)
if (dirtyComponents.size() == 0) return; synchronized (dirtyComponents) { ArrayList repaintOrder = new ArrayList(dirtyComponents.size()); repaintOrder.addAll(dirtyComponents.keySet()); if (comparator == null) comparator = new ComponentComparator(); Collections.sort(repaintOrder, comparator); for (Iterator i = repai...
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
Rectangle damaged = (Rectangle) workDirtyComponents.get(comp);
Rectangle damaged = (Rectangle) dirtyComponents.get(comp);
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
workRepaintOrder.clear(); workDirtyComponents.clear();
public synchronized void paintDirtyRegions() { // In order to keep the blocking of application threads minimal, we switch // the dirtyComponents field with the workdirtyComponents field and the // repaintOrder field with the workRepaintOrder field and work with the // work* fields. synchronized(th...
public synchronized void removeInvalidComponent(JComponent component)
public void removeInvalidComponent(JComponent component) { synchronized (invalidComponents)
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.remove(component); }
}
public synchronized void removeInvalidComponent(JComponent component) { invalidComponents.remove(component); }
synchronized(this) { ArrayList swap = invalidComponents; invalidComponents = workInvalidComponents; workInvalidComponents = swap; } for (Iterator i = workInvalidComponents.iterator(); i.hasNext(); )
while (invalidComponents.size() > 0)
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
Component comp = (Component) i.next(); while ((!(comp instanceof JComponent) || !((JComponent) comp).isValidateRoot()) && comp.getParent() != null) comp = comp.getParent();
Component comp; synchronized (invalidComponents) { comp = (Component) invalidComponents.remove(0); }
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
workInvalidComponents.clear();
public void validateInvalidComponents() { // In order to keep the blocking of application threads minimal, we switch // the invalidComponents field with the workInvalidComponents field and // work with the workInvalidComponents field. synchronized(this) { ArrayList swap = invalidComponents; ...
return 0;
return CANCEL_OPTION;
public int showDialog(Component parent, String approveButtonText) { return 0; // TODO } // showDialog()
return 0;
return CANCEL_OPTION;
public int showOpenDialog(Component parent) { return 0; // TODO } // showOpenDialog()
return 0;
return CANCEL_OPTION;
public int showSaveDialog(Component parent) { return 0; // TODO } // showSaveDialog()
public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented"); }
public ActivationGroupDesc(Properties aProperties, ActivationGroupDesc.CommandEnvironment environment) { this(DefaultActivationGroup.class.getName(), null, null, aProperties, environment); }
public ActivationGroupDesc(String className, String location, MarshalledObject data, Properties overrides, ActivationGroupDesc.CommandEnvironment cmd) { throw new Error("Not implemented");}
ActivationGroupID registerGroup (ActivationGroupDesc desc)
ActivationGroupID registerGroup(ActivationGroupDesc groupDesc)
ActivationGroupID registerGroup (ActivationGroupDesc desc) throws ActivationException, RemoteException;
if (mode == Stylesheet.OUTPUT_HTML) buf.append("&#x27;"); else
String encode(String text, boolean encodeCtl, boolean inAttr) { int len = text.length(); StringBuffer buf = null; for (int i = 0; i < len; i++) { char c = text.charAt(i); if (c == '<') { if (buf == null) { buf = new StringBuffer(text.substri...
}
public float getPreferredSpan(int axis) { if (axis == X_AXIS) return getWidth(); else if (axis == Y_AXIS) return numLines * metrics.getHeight(); throw new IllegalArgumentException("Invalid axis for getPreferredSpan: " + axis); }
Rectangle rect = a.getBounds();
public Shape modelToView(int pos, Shape a, Bias b) throws BadLocationException { Segment s = getLineBuffer(); int lineHeight = metrics.getHeight(); Rectangle rect = a.getBounds(); // Return a rectangle with width 1 and height equal to the height // of the text rect.hei...
if (a.isEmpty())
if (a == null || a.isEmpty())
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a.isEmpty()) { nu...
MenuBarPeer mp = (MenuBarPeer) peer; mp.addMenu (menu);
menu.addNotify();
add(Menu menu){ if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; menus.addElement(menu); if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; mp.addMenu (menu); } return(menu);}
if (helpMenu != null) { helpMenu.addNotify(); ((MenuBarPeer) peer).addHelpMenu(helpMenu); }
addNotify(){ if (getPeer() == null) setPeer((MenuComponentPeer)getToolkit().createMenuBar(this)); Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); }}
return menus.size ();
return menus.size () + (getHelpMenu () == null ? 0 : 1);
countMenus(){ // FIXME: How does the help menu fit in here? return menus.size ();}
if (menu.parent != null) menu.parent.remove (menu);
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ...
MenuBarPeer mp = (MenuBarPeer) peer; mp.addHelpMenu (menu);
menu.addNotify(); peer.addHelpMenu (menu);
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } if (menu.parent != null) menu.parent.remove (menu); if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; if (peer != null) { MenuBarPeer mp = (MenuBarPeer) peer; ...
throw (Exception)(e.getTargetException());
Throwable cause = e.getTargetException(); if (cause instanceof Exception) { throw (Exception)cause; } else if (cause instanceof Error) { throw (Error)cause; } else { throw new Error("The remote method threw a java.lang.Throwable that is neither java.lang.Exception nor java.lang.Error.", e); }
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception {//System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == -1) { Method meth = (Method)methods.get(new Long (hash)...
revalidate();
public void addFrame(final JInternalFrame frame) { log.debug("addFrame " + frame.getTitle()); final FrameWrapper wrapper = new FrameWrapper(frame); SwingUtilities.invokeLater(new Runnable() { public void run() { wrappers.put(frame, wrapper); model.addElement(wrap...
revalidate();
public void run() { wrappers.put(frame, wrapper); model.addElement(wrapper); repaint(); }
revalidate();
public void removeFrame(final JInternalFrame frame) { log.debug("removeFrame " + frame.getTitle()); final FrameWrapper wrapper = wrappers.get(frame); if (wrapper != null) { SwingUtilities.invokeLater(new Runnable() { public void run() { model.removeElement...
revalidate();
public void run() { model.removeElement(wrapper); wrappers.remove(frame); repaint(); }
propertyChangeListener = new PropertyChangeHandler();
public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); propertyChangeListener = new PropertyChangeHandler(); itemListener = new ItemHandler(); }
menuItem.addPropertyChangeListener(propertyChangeListener);
protected void installListeners() { menuItem.addMouseListener(mouseInputListener); menuItem.addMouseMotionListener(mouseInputListener); menuItem.addMenuDragMouseListener(menuDragMouseListener); menuItem.addMenuKeyListener(menuKeyListener); menuItem.addPropertyChangeListener(propertyChangeListener); ...
menuItem.removePropertyChangeListener(propertyChangeListener);
protected void uninstallListeners() { menuItem.removeMouseListener(mouseInputListener); menuItem.removeMenuDragMouseListener(menuDragMouseListener); menuItem.removeMenuKeyListener(menuKeyListener); menuItem.removePropertyChangeListener(propertyChangeListener); menuItem.removeItemListener(itemListener)...
protected byte getTTL() throws IOException { return (byte)getTimeToLive(); }
protected abstract byte getTTL() throws IOException;
protected byte getTTL() throws IOException { return (byte)getTimeToLive(); }
protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); }
protected abstract void setTTL(byte ttl) throws IOException;
protected void setTTL(byte ttl) throws IOException { setTimeToLive(ttl); }
final File parent = file.getParentFile();
final File parent = file.getAbsoluteFile().getParentFile();
public void delete(File file) throws IOException { final File parent = file.getParentFile(); if (parent == null) { throw new IOException("There is no parent of " + file); } final FSEntry parentEntry = getEntry(parent); if (parentEntry == null) { throw new IOException("Parent of " + file + " not found"); } i...
final FSEntry parent = getEntry(file.getParentFile());
final FSEntry parent = getEntry(file.getAbsoluteFile().getParentFile());
public VMFileHandle open(File file, VMOpenMode mode) throws IOException { FSEntry entry = getEntry(file); if ((entry != null) && !entry.isFile()) { throw new IOException("Not a file " + file); } if (entry == null) { if (mode.canWrite()) { // Try to create the file final FSEntry parent = getEntry(file.get...
return new Insets(0, 0, 0, 0);
return new Insets(2, 2, 2, 2);
public Insets getBorderInsets(Component c) { return new Insets(0, 0, 0, 0); }
return false;
return true;
public boolean isBorderOpaque() { return false; }
Rectangle bounds = getBounds();
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo...
g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bounds.y);
g.drawLine(x + 1, y + 1, x + w - 1, y + 1); g.drawLine(x + 1, y + 1, x + 1, y + h - 1);
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo...
g.drawLine(bounds.x + 1, bounds.y + bounds.height - 1, bounds.x + bounds.width - 1, bounds.y + bounds.height - 1); g.drawLine(bounds.x + bounds.width - 1, bounds.y + 1, bounds.x + bounds.width - 1, bounds.y + bounds.height - 1);
g.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1); g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1);
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo...
g.drawLine(bounds.x, bounds.y + bounds.height, bounds.x + bounds.width, bounds.y + bounds.height); g.drawLine(bounds.x + bounds.width, bounds.y, bounds.x + bounds.width, bounds.y + bounds.height);
g.drawLine(x, y + h, x + w, y + h); g.drawLine(x + w, y, x + w, y + h);
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { Rectangle bounds = getBounds(); Color saved = g.getColor(); g.setColor(highlight); g.drawLine(bounds.x, bounds.y, bounds.x, bounds.y + bounds.height); g.drawLine(bounds.x, bounds.y, bounds.x + bounds.width, bo...
Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size);
Polygon arrow = null; switch (direction) { case NORTH: arrow = upIcon; break; case SOUTH: arrow = downIcon; break; case EAST: case RIGHT: arrow = rightIcon; break; case WEST: case LEFT: arrow = leftIcon; break; }
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els...
Color arrowColor; if (isEnabled()) arrowColor = darkShadow;
int[] xPoints = arrow.xpoints; int[] yPoints = arrow.ypoints; int x1; int y1; int x2; int y2; x1 = y1 = x2 = y2 = 0; if (size != defaultSize) { float scale = size * 1f / defaultSize; for (int i = 0; i < 3; i++) { xPoints[i] *= scale; yPoints[i] *= scale; } } g.translate(x, y); switch (direction) { case NORTH: x1 = xP...
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els...
arrowColor = shadow; arrowI.paintIconImpl(g, x, y, arrowColor);
{ g.setColor(Color.GRAY); g.fillPolygon(xPoints, yPoints, 3); g.setColor(Color.WHITE); g.drawLine(x1, y1, x2, y2); } g.setColor(saved); g.translate(-x, -y);
public void paintTriangle(Graphics g, int x, int y, int size, int direction, boolean isEnabled) { Polygon arrow = getArrow(direction, size); arrowIcon arrowI = new arrowIcon(arrow); arrowI.setSize(size); Color arrowColor; if (isEnabled()) arrowColor = darkShadow; els...
widths[i] = cmodel.getColumn(i).getWidth();
widths[i] = cmodel.getColumn(i).getWidth() - columnMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
bounds.height = table.getRowHeight()+table.getRowMargin();
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
int height = bounds.height;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
bounds.x += widths[c];
bounds.x += widths[c] + columnMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
bounds.y += height;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
bottom = bounds.y;
bottom = bounds.y - rowMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
int x = left;
int x = left - columnMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
x += widths[c];
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
int y = top;
int y = top - rowMargin;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...
y += height;
public void paint(Graphics gfx, JComponent ignored) { int ncols = table.getColumnCount(); int nrows = table.getRowCount(); if (nrows == 0 || ncols == 0) return; Rectangle clip = gfx.getClipBounds(); // Determine the range of cells that are within the clip bounds. Point p1 = new Point(clip.x, ...