bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different from the last event target. if (target != lastTarget) { if (lastTarget != null) { Point p1 = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), lastTarget); MouseEvent mouseExited = new MouseEvent(lastTarget, MouseEvent.MOUSE_EXITED, ev.getWhen(), ev.getModifiers(), p1.x, p1.y, ev.getClickCount(), ev.isPopupTrigger()); lastTarget.dispatchEvent(mouseExited); } if (target != null) { Point p = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); MouseEvent mouseEntered = new MouseEvent(target, MouseEvent.MOUSE_ENTERED, ev.getWhen(), ev.getModifiers(), p.x, p.y, ev.getClickCount(), ev.isPopupTrigger()); target.dispatchEvent(mouseEntered); } } switch (ev.getID()) { case MouseEvent.MOUSE_PRESSED: dragTarget = target; break; case MouseEvent.MOUSE_RELEASED: if (dragTarget != null) target = dragTarget; dragTarget = null; break; case MouseEvent.MOUSE_CLICKED: // When we receive a MOUSE_CLICKED, we set the target to the // previous target, which must have been a MOUSE_RELEASED event. // This is necessary for the case when the MOUSE_RELEASED has // caused the original target (like an internal component) go // away. target = lastTarget; break; case MouseEvent.MOUSE_DRAGGED: target = dragTarget; break; default: // Do nothing in other cases. break; } lastTarget = target; if (target != null) { Point targetCoordinates = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); int dx = targetCoordinates.x - ev.getX(); int dy = targetCoordinates.y - ev.getY(); ev.translatePoint(dx, dy); ev.setSource(target); target.dispatchEvent(ev); // We reset the event, so that the normal event dispatching is not // influenced by this modified event. ev.setSource(window); ev.translatePoint(-dx, -dy); } return true; } else return false; }
private boolean handleMouseEvent(MouseEvent ev) { Window window = (Window) ev.getSource(); Component target = window.findComponentAt(ev.getX(), ev.getY()); target = findTarget(target); if (target == null || target.isLightweight()) { // Dispatch additional MOUSE_EXITED and MOUSE_ENTERED if event target // is different from the last event target. if (target != lastTarget) { if (lastTarget != null) { Point p1 = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), lastTarget); MouseEvent mouseExited = new MouseEvent(lastTarget, MouseEvent.MOUSE_EXITED, ev.getWhen(), ev.getModifiers(), p1.x, p1.y, ev.getClickCount(), ev.isPopupTrigger()); lastTarget.dispatchEvent(mouseExited); } if (target != null) { Point p = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); MouseEvent mouseEntered = new MouseEvent(target, MouseEvent.MOUSE_ENTERED, ev.getWhen(), ev.getModifiers(), p.x, p.y, ev.getClickCount(), ev.isPopupTrigger()); target.dispatchEvent(mouseEntered); } } switch (ev.getID()) { case MouseEvent.MOUSE_PRESSED: dragTarget = target; break; case MouseEvent.MOUSE_RELEASED: if (dragTarget != null) target = dragTarget; dragTarget = null; break; case MouseEvent.MOUSE_CLICKED: // When we receive a MOUSE_CLICKED, we set the target to the // previous target, which must have been a MOUSE_RELEASED event. // This is necessary for the case when the MOUSE_RELEASED has // caused the original target (like an internal component) go // away. target = lastTarget; break; case MouseEvent.MOUSE_DRAGGED: target = dragTarget; break; default: // Do nothing in other cases. break; } lastTarget = target; if (target != null) { Point targetCoordinates = AWTUtilities.convertPoint(window, ev.getX(), ev.getY(), target); int dx = targetCoordinates.x - ev.getX(); int dy = targetCoordinates.y - ev.getY(); ev.translatePoint(dx, dy); ev.setSource(target); target.dispatchEvent(ev); // We reset the event, so that the normal event dispatching is not // influenced by this modified event. ev.setSource(window); ev.translatePoint(-dx, -dy); } return true; } else return false; }
12,259
void set_value(byte[] a_value);
void set_value(byte[] a_value) throws InvalidValue;
12,260
Object getOption(int option_id) throws SocketException;
Object getOption(int optionId) throws SocketException;
12,261
void setOption(int option_id, Object val) throws SocketException;
void setOption(int optionId, Object val) throws SocketException;
12,262
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
public TreePath getPathForRow(int value0) { return null; // TODO } // getPathForRow()
12,263
public InstantiationException(String s) { super(s); }
public InstantiationException(String s) { super(s); }
12,264
InputEvent(Component source, int id, long when, int modifiers) { super(source, id); this.when = when; this.modifiers = EventModifier.extend(modifiers); }
InputEvent(Component source, int id, long when, int modifiers) { super(source, id); this.when = when; this.modifiers = modifiers & EventModifier.OLD_MASK; this.modifiersEx = modifiers & EventModifier.NEW_MASK; }
12,265
public int getModifiers() { return EventModifier.revert(modifiers); }
public int getModifiers() { return modifiers; }
12,266
public int getModifiersEx() { return modifiers; }
public int getModifiersEx() { return modifiersEx; }
12,267
public boolean isAltDown() { return (modifiers & ALT_DOWN_MASK) != 0; }
public boolean isAltDown() { return ((modifiers & ALT_MASK) != 0) || ((modifiersEx & ALT_DOWN_MASK) != 0); }
12,268
public boolean isAltGraphDown() { return (modifiers & ALT_GRAPH_DOWN_MASK) != 0; }
public boolean isAltGraphDown() { return ((modifiers & ALT_GRAPH_MASK) != 0) || ((modifiersEx & ALT_GRAPH_DOWN_MASK) != 0); }
12,269
public boolean isControlDown() { return (modifiers & CTRL_DOWN_MASK) != 0; }
public boolean isControlDown() { return ((modifiers & CTRL_MASK) != 0) || ((modifiersEx & CTRL_DOWN_MASK) != 0); }
12,270
public boolean isMetaDown() { return (modifiers & META_DOWN_MASK) != 0; }
public boolean isMetaDown() { return ((modifiers & META_MASK) != 0) || ((modifiersEx & META_DOWN_MASK) != 0); }
12,271
public boolean isShiftDown() { return (modifiers & SHIFT_DOWN_MASK) != 0; }
public boolean isShiftDown() { return ((modifiers & SHIFT_MASK) != 0) || ((modifiersEx & SHIFT_DOWN_MASK) != 0); }
12,272
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
private synchronized boolean registerServiceProvider(Object provider, int cat) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
12,274
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
public synchronized void registerServiceProvider(Object provider) { LinkedList provs; boolean result; Class category; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
12,275
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
12,276
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(provider, i); } if (!ok) throw new IllegalArgumentException(); }
12,277
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JCheckBox"; }
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JCheckBox"; }
12,278
public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); }
public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); }
12,279
public int getLayoutFlags () throws NotImplementedException { throw new Error ("not implemented"); }
public int getLayoutFlags () throws NotImplementedException { return 0; }
12,280
public BindingHolder(Binding initialValue) { value = initialValue; }
public BindingHolder() { value = initialValue; }
12,281
public BindingHolder(Binding initialValue) { value = initialValue; }
public BindingHolder(Binding initialValue) { }
12,282
public void paint(Graphics g) { paintComponent(g); paintBorder(g); paintChildren(g); }
public void paint(Graphics g) { paintComponent(g); paintBorder(g); paintChildren(g); }
12,283
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
void paintDoubleBuffered(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
12,284
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
12,285
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
void paintDoubleBuffered(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); // Paint on the offscreen buffer. Image buffer = rm.getOffscreenBuffer(this, getWidth(), getHeight()); Graphics g = buffer.getGraphics(); Graphics g2 = getComponentGraphics(g); g2.setClip(r.x, r.y, r.width, r.height); paint(g2); g2.dispose(); g.dispose(); // Paint the buffer contents on screen. Graphics g3 = getGraphics(); g3.setClip(r.x, r.y, r.width, r.height); g3.drawImage(buffer, 0, 0, this); g3.dispose(); }
12,286
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(r); }
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(g); else paintSimple(r); }
12,287
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(r); }
void paintImmediately2(Rectangle r) { RepaintManager rm = RepaintManager.currentManager(this); if (rm.isDoubleBufferingEnabled() && isDoubleBuffered()) paintDoubleBuffered(r); else paintSimple(g); g.dispose(); }
12,288
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
void paintSimple(Graphics g) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
12,289
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
void paintSimple(Rectangle r) { Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
12,290
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
void paintSimple(Rectangle r) { Graphics g = getGraphics(); Graphics g2 = getComponentGraphics(g); paint(g2); g2.dispose(); g2.dispose(); }
12,291
int getDefaultCloseOperation() { return close_action; }
public int getDefaultCloseOperation() { return close_action; }
12,292
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case EXIT_ON_CLOSE: { System.exit(1); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } case HIDE_ON_CLOSE: { setVisible(false); break; } case DO_NOTHING_ON_CLOSE: break; } break; } case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } }
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: { switch(close_action) { case EXIT_ON_CLOSE: { System.exit(0); break; } case DISPOSE_ON_CLOSE: { dispose(); break; } case HIDE_ON_CLOSE: { setVisible(false); break; } case DO_NOTHING_ON_CLOSE: break; } break; } case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } }
12,293
public void setDefaultCloseOperation(int operation) { close_action = operation; }
public void setDefaultCloseOperation(int operation) { SecurityManager sm = System.getSecurityManager(); if (sm != null && operation == EXIT_ON_CLOSE) sm.checkExit(0); if (operation != EXIT_ON_CLOSE && operation != DISPOSE_ON_CLOSE && operation != HIDE_ON_CLOSE && operation != DO_NOTHING_ON_CLOSE) throw new IllegalArgumentException("operation = " + operation); close_action = operation; }
12,294
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); dispose(); break; } case HIDE_ON_CLOSE : { setVisible(false); break; } case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); dispose(); break; } case HIDE_ON_CLOSE : { setVisible(false); break; } case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
12,295
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); dispose(); break; } case HIDE_ON_CLOSE : { setVisible(false); break; } case DO_NOTHING_ON_CLOSE : break; } break; } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; } }
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING : { switch (close_action) { case DISPOSE_ON_CLOSE : { System.out.println("user requested dispose on close"); dispose(); break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } } case HIDE_ON_CLOSE : { setVisible(false); break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } } case DO_NOTHING_ON_CLOSE : break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } } break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } } case WindowEvent.WINDOW_CLOSED : case WindowEvent.WINDOW_OPENED : case WindowEvent.WINDOW_ICONIFIED : case WindowEvent.WINDOW_DEICONIFIED : case WindowEvent.WINDOW_ACTIVATED : case WindowEvent.WINDOW_DEACTIVATED : break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } } case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_OPENED: case WindowEvent.WINDOW_ICONIFIED: case WindowEvent.WINDOW_DEICONIFIED: case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_DEACTIVATED: break; } }
12,296
public abstract BufferedImage createCompatibleImage(int w, int h, int transparency);
public abstract BufferedImage createCompatibleImage(int w, int h, int transparency);
12,297
public JRadioButton(String text) { this(text, null); }
public JRadioButton(String text) { this(text, null); }
12,298
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JRadioButton"; }
public String getUIClassID() { //Returns a string that specifies the name of the L&F class that renders this component. return "JRadioButton"; }
12,299
protected PortableRemoteObject() throws RemoteException { if(delegate != null) exportObject((Remote)this); }
protected PortableRemoteObject() throws RemoteException { if(delegate != null) exportObject((Remote)this); }
12,300
public static void connect(Remote target, Remote source) throws RemoteException { if(delegate != null) delegate.connect(target, source); }
public static void connect(Remote target, Remote source) throws RemoteException { if(delegate != null) delegate.connect(target, source); }
12,301
public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); }
public static void exportObject(Remote object) throws RemoteException { if(delegate != null) delegate.exportObject(obj); }
12,302
public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); }
public static void exportObject(Remote obj) throws RemoteException { if(delegate != null) delegate.exportObject(obj); }
12,303
public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; }
public static Object narrow(Object object, Class narrowToInstaceOf) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; }
12,304
public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; }
public static Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException { if(delegate != null) return delegate.narrow(narrowFrom, narrowTo); else return null; }
12,305
public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; }
public static Remote toStub(Remote targetImpl) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; }
12,306
public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; }
public static Remote toStub(Remote obj) throws NoSuchObjectException { if(delegate != null) return delegate.toStub(obj); else return null; }
12,307
public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); }
public static void unexportObject(Remote object) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); }
12,308
public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); }
public static void unexportObject(Remote obj) throws NoSuchObjectException { if(delegate != null) delegate.unexportObject(obj); }
12,309
public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.UNKNOWN_ENDIAN); }
public CharsetDecoder newDecoder () { return new UTF_16Decoder (this, UTF_16Decoder.MAYBE_LITTLE_ENDIAN); }
12,310
protected void installDefaults() { /* most of it copied from BasicLabelUI, I don't know what keys are available, so someone may want to update this. Hence: TODO */ UIDefaults defaults = UIManager.getLookAndFeelDefaults(); /* spinner.setForeground(defaults.getColor("Spinner.foreground")); spinner.setBackground(defaults.getColor("Spinner.background")); spinner.setFont(defaults.getFont("Spinner.font")); spinner.setBorder(defaults.getBorder("Spinner.border")); */ spinner.setLayout(createLayout()); spinner.setOpaque(true); }
protected void installDefaults() { /* most of it copied from BasicLabelUI, I don't know what keys are available, so someone may want to update this. Hence: TODO */ LookAndFeel.installColorsAndFont(spinner, "Spinner.background", "Spinner.foreground", "Spinner.font"); LookAndFeel.installBorder(spinner, "Spinner.border"); /* spinner.setForeground(defaults.getColor("Spinner.foreground")); spinner.setBackground(defaults.getColor("Spinner.background")); spinner.setFont(defaults.getFont("Spinner.font")); spinner.setBorder(defaults.getBorder("Spinner.border")); */ spinner.setLayout(createLayout()); spinner.setOpaque(true); }
12,311
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); if (attr != null) { elementExcludeResultPrefixes = new HashSet(); StringTokenizer st = new StringTokenizer(attr.getNodeValue()); while (st.hasMoreTokens()) { elementExcludeResultPrefixes.add(st.nextToken()); } } else { elementExcludeResultPrefixes = Collections.EMPTY_SET; } }
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); if (attr != null) elementExcludeResultPrefixes = new HashSet(); StringTokenizer st = new StringTokenizer(attr.getNodeValue()); while (st.hasMoreTokens()) elementExcludeResultPrefixes.add(st.nextToken()); } } else elementExcludeResultPrefixes = Collections.EMPTY_SET; } }
12,312
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); if (attr != null) { elementExcludeResultPrefixes = new HashSet(); StringTokenizer st = new StringTokenizer(attr.getNodeValue()); while (st.hasMoreTokens()) { elementExcludeResultPrefixes.add(st.nextToken()); } } else { elementExcludeResultPrefixes = Collections.EMPTY_SET; } }
ElementNode(TemplateNode name, TemplateNode namespace, String uas, Node source) { this.name = name; this.namespace = namespace; this.uas = uas; this.source = source; NamedNodeMap attrs = source.getAttributes(); Node attr = attrs.getNamedItemNS(Stylesheet.XSL_NS, "exclude-result-prefixes"); if (attr != null) { elementExcludeResultPrefixes = new HashSet(); StringTokenizer st = new StringTokenizer(attr.getNodeValue()); while (st.hasMoreTokens()) { elementExcludeResultPrefixes.add(st.nextToken()); else { elementExcludeResultPrefixes = Collections.EMPTY_SET;
12,313
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; } if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; stylesheet.bindings.global = false; if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); stylesheet.bindings.global = false; stylesheet.bindings.global = false; if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); stylesheet.bindings.global = false; stylesheet.bindings.global = false; stylesheet.bindings.global = false;
12,314
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
12,315
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ElementNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), uas, source); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
12,316
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else // Namespace aliasing if (prefix == null) prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) if ("#default".equals(resultPrefix)) resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) if (XMLConstants.XML_NS_PREFIX.equals(prefix)) namespaceValue = XMLConstants.XML_NS_URI; } else // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) parent.insertBefore(element, nextSibling); } else parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
12,317
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; else { else { String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); else { else { // Namespace aliasing if (prefix == null) { prefix = "#default"; else { String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; else { namespaceValue = source.lookupNamespaceURI(resultPrefix); else { if (prefix == "#default") { prefix = null; else { // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; else { else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); else { else { /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; else { else {*/ else { // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); else { else { parent.appendChild(element); else { stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); else { else { if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); else { if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); else { else {
12,318
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); else { // Namespace aliasing if (prefix == null) { prefix = "#default"; String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; namespaceValue = source.lookupNamespaceURI(resultPrefix); if (prefix == "#default") { prefix = null; // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; */ // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); else { parent.appendChild(element); stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling);
12,319
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
12,320
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } }*/ } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the name DocumentFragment fragment = doc.createDocumentFragment(); // Apply name to the fragment name.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment String nameValue = Expr.stringValue(fragment); String namespaceValue = null; if (namespace != null) { // Create a document fragment to hold the namespace fragment = doc.createDocumentFragment(); // Apply namespace to the fragment namespace.apply(stylesheet, mode, context, pos, len, fragment, null); // Use XPath string-value of fragment namespaceValue = Expr.stringValue(fragment); if (namespaceValue.length() == 0) { namespaceValue = null; } } String prefix = getPrefix(nameValue); if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { int ci = nameValue.indexOf(':'); nameValue = nameValue.substring(ci + 1); } else { // Namespace aliasing if (prefix == null) { prefix = "#default"; } String resultPrefix = (String) stylesheet.namespaceAliases.get(prefix); if (resultPrefix != null) { if ("#default".equals(resultPrefix)) { resultPrefix = null; } namespaceValue = source.lookupNamespaceURI(resultPrefix); } if (prefix == "#default") { prefix = null; } // Look up ordinary namespace for this prefix if (namespaceValue == null) { if (XMLConstants.XML_NS_PREFIX.equals(prefix)) { namespaceValue = XMLConstants.XML_NS_URI; } else { // Resolve namespace for this prefix namespaceValue = source.lookupNamespaceURI(prefix); } } /*if (prefix == null) { // Resolve prefix for this namespace prefix = parent.lookupPrefix(namespaceValue); if (prefix != null) { nameValue = prefix + ":" + nameValue; } } // Create element Element element = (namespaceValue != null) ? doc.createElementNS(namespaceValue, nameValue) : doc.createElement(nameValue); if (nextSibling != null) { parent.insertBefore(element, nextSibling); } else { parent.appendChild(element); } stylesheet.addNamespaceNodes(source, element, doc, elementExcludeResultPrefixes); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, element, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, element, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
12,321
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) if (name != null && name.references(var)) return true; } if (namespace != null && namespace.references(var)) return true; } return super.references(var); }
12,322
public boolean references(QName var) { if (name != null && name.references(var)) { return true; } if (namespace != null && namespace.references(var)) { return true; } return super.references(var); }
public boolean references(QName var) { if (name != null && name.references(var)) { return true; if (namespace != null && namespace.references(var)) { return true; return super.references(var);
12,323
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); if (uas != null) { buf.append(",uas="); buf.append(uas); } buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("element"); buf.append('['); buf.append("name="); buf.append(name); if (uas != null) { buf.append(",uas="); buf.append(uas); } buf.append(']'); return buf.toString(); }
12,324
public boolean add(Object o) { if (o == null) throw new NullPointerException("reason is null"); return add((JobStateReason) o); }
public boolean add(Object o) { if (o == null) throw new NullPointerException("reason is null"); return super.add((JobStateReason) o); }
12,326
public SwingContainerPeer(Component awtCont) { init(awtCont, null); }
public SwingContainerPeer(Container awtCont) { init(awtCont, null); }
12,327
public SwingContainerPeer(Component awtCont) { init(awtCont, null); }
public SwingContainerPeer(Component awtCont) { heavyweightDescendents = new LinkedList(); }
12,328
public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; }
public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; }
12,329
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.setSource(comp); ((SwingComponentPeer) peer).handleMouseEvent(ev); } } }
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.setSource(comp); ((SwingComponentPeer) peer).handleMouseEvent(ev); } } }
12,330
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.setSource(comp); ((SwingComponentPeer) peer).handleMouseEvent(ev); } } }
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.setSource(comp); ((SwingComponentPeer) peer).handleMouseEvent(ev);
12,331
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
protected void peerPaint(Graphics g, boolean update) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
12,332
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
12,333
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
12,334
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
12,335
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
protected void peerPaint(Graphics g) { Container c = (Container) awtComponent; Component[] children = c.getComponents(); for (int i = children.length - 1; i >= 0; --i) { Component child = children[i]; ComponentPeer peer = child.getPeer(); boolean translated = false; boolean clipped = false; Shape oldClip = g.getClip(); try { g.translate(child.getX(), child.getY()); translated = true; g.setClip(0, 0, child.getWidth(), child.getHeight()); clipped = true; if (peer instanceof SwingComponentPeer) ((SwingComponentPeer) peer).peerPaint(g); } finally { if (translated) g.translate(- child.getX(), - child.getY()); if (clipped) g.setClip(oldClip); } } }
12,336
public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; }
public static byte[] read(InputStream input) { OctetSeqHolder h = new OctetSeqHolder(); h._read(input); return h.value; }
12,337
public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); }
public static void write(OutputStream output, byte[] value) { OctetSeqHolder h = new OctetSeqHolder(value); h._write(output); }
12,338
public BeanContextServicesSupport () { this (null, null, true, true); }
public BeanContextServicesSupport () { super(); }
12,339
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); }
public void addBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); }
12,340
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); }
public void addBeanContextServicesListener (BeanContextServicesListener bcsl) { if (! bcsListeners.contains(listener)) bcsListeners.add(listener); }
12,341
fireServiceRevoked (BeanContextServiceRevokedEvent bcsre) { throw new Error ("Not implemented"); }
protected final void fireServiceRevoked(BeanContextServiceRevokedEvent event) { throw new Error ("Not implemented"); }
12,342
public void initialize () { throw new Error ("Not implemented"); }
public void initialize () { super.initialize(); bcsListeners = new ArrayList(); services = new HashMap(); }
12,343
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); }
public void removeBeanContextServicesListener (BeanContextServicesListener listener) { throw new Error ("Not implemented"); }
12,344
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { throw new Error ("Not implemented"); }
removeBeanContextServicesListener (BeanContextServicesListener bcsl) { int index = bcsListeners.indexOf(listener); if (index > -1) bcsListeners.remove(index); }
12,345
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } }
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } }
12,347
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } }
public IPv4Address(String addrStr) throws IllegalArgumentException { final StringTokenizer tok = new StringTokenizer(addrStr, "."); if (tok.countTokens() != length) { throw new IllegalArgumentException("Not an IPv4 address " + addrStr); } address = new byte[length]; for (int i = 0; i < length; i++) { try { address[i] = (byte)Integer.parseInt(tok.nextToken()); } catch (NumberFormatException ex) { throw new IllegalArgumentException("Not a valid IPv4 address " + addrStr); } } }
12,348
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection()
public void clearSelection () { index = -1; // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection()
12,349
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection()
public void clearSelection() { // Set Data index = -1; // Notify Listeners fireStateChanged(); } // clearSelection()
12,350
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
protected void fireStateChanged () { ChangeListener listener; ChangeListener[] listeners; int index; // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
12,351
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
12,352
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
12,353
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex()
public void setSelectedIndex (int index) { this.index = index; // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex()
12,354
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex()
public void setSelectedIndex(int index) { // Set Data this.index = index; // Notify Listeners fireStateChanged(); } // setSelectedIndex()
12,355
public Element getElement(String element_name) { Element e = newElement(element_name); return e; }
public Element getElement(String element_name) { Element e = newElement(element_name); return e; }
12,356
public Object put(Object key, Object value) { Object old = super.put(key, value); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; }
public Object put(Object key, Object value) { Object old; if (value != null) old = super.put(key, value); else old = super.remove(key); if (key instanceof String && old != value) firePropertyChange((String) key, old, value); return old; }
12,357
public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); }
public synchronized void release() { log.debug("io.release"); io.release(); log.debug("irq.release"); irq.release(); }
12,358
public JMenuItem() { super(null, null); }
public JMenuItem() { super(); }
12,360
DefaultButtonModel(JComponent a) { comp = a; }
DefaultButtonModel(JComponent a) { comp = a; }
12,361
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); //g.translate(-p.x, -p.y); } break; case PaintEvent.UPDATE: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).update(getGraphics()); //g.translate(-p.x, -p.y); } break; } }
public void handleEvent(AWTEvent event) { switch (event.getID()) { case PaintEvent.PAINT: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).paint(g); //g.translate(-p.x, -p.y); } break; case PaintEvent.UPDATE: { Graphics g = jComponent.getGraphics(); //Point p = component.getLocationOnScreen(); //g.translate(p.x, p.y); ((Component)component).update(getGraphics()); //g.translate(-p.x, -p.y); } break; } }
12,362