rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
throws NotImplementedException
public int getAccessibleActionCount() throws NotImplementedException { return 0; }
return 0;
return 1;
public int getAccessibleActionCount() throws NotImplementedException { return 0; }
public String getAccessibleActionDescription(int value0) throws NotImplementedException
public String getAccessibleActionDescription(int actionIndex)
public String getAccessibleActionDescription(int value0) throws NotImplementedException { return null; }
return null;
return UIManager.getString("ComboBox.togglePopupText");
public String getAccessibleActionDescription(int value0) throws NotImplementedException { return null; }
public Accessible getAccessibleChild(int value0) throws NotImplementedException
public Accessible getAccessibleChild(int index)
public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; }
return null;
ComponentUI ui = getUI(); Accessible child = null; if (ui != null) child = ui.getAccessibleChild(JComboBox.this, index); else child = super.getAccessibleChild(index); return child;
public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; }
return 0;
ComponentUI ui = getUI(); int count; if (ui != null) count = ui.getAccessibleChildrenCount(JComboBox.this); else count = super.getAccessibleChildrenCount(); return count;
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
return 0;
Object sel = getSelectedItem(); int count = 0; if (sel != null) count = 1; return count;
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException
public boolean isAccessibleChildSelected(int index)
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; }
return false;
return getSelectedIndex() == index;
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; }
public void removeAccessibleSelection(int value0) throws NotImplementedException
public void removeAccessibleSelection(int index)
public void removeAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. }
if (getSelectedIndex() == index) clearAccessibleSelection();
public void removeAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. }
start();
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue; setPriority(NORM_PRIORITY + 1); start(); }
while (true) { try { AWTEvent evt = queue.getNextEvent(); if (isInterrupted ()) { return; }
System.out.println("run of dispatch thread"); while (true) { try { AWTEvent evt = queue.getNextEvent();
public void run() { while (true) { try { AWTEvent evt = queue.getNextEvent(); if (isInterrupted ()) { // We are interrupted when we should finish executing return; } KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (...
if (!manager.dispatchEvent (evt)) queue.dispatchEvent(evt); } catch (ThreadDeath death) { return;
if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) { System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) { System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception")...
public void run() { while (true) { try { AWTEvent evt = queue.getNextEvent(); if (isInterrupted ()) { // We are interrupted when we should finish executing return; } KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (...
catch (InterruptedException ie) { return; } catch (Throwable x) { System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); } } }
}
public void run() { while (true) { try { AWTEvent evt = queue.getNextEvent(); if (isInterrupted ()) { // We are interrupted when we should finish executing return; } KeyboardFocusManager manager; manager = KeyboardFocusManager.getCurrentKeyboardFocusManager (...
VmAbstractHeap heap = heapManager.getFirstHeap();
VmAbstractHeap heap = heapManager.getHeapList();
private final void runFinalization() { VmAbstractHeap heap = heapManager.getFirstHeap(); while (heap != null) { visitor.setCurrentHeap(heap); heap.walk(visitor, true, ObjectFlags.GC_COLOUR_MASK, ObjectFlags.GC_YELLOW); heap = heap.getNext(); } }
responseHeaders.remove("Content-Encoding");
private InputStream createResponseBodyStream(Headers responseHeaders, int majorVersion, int minorVersion, InputStream in) throws IOException { long contentLength = -1; He...
addLayoutComponent(Component component, Object constraints) {
public void addLayoutComponent(Component component, Object constraints) {
addLayoutComponent(Component component, Object constraints){ if (constraints != null && ! (constraints instanceof String)) throw new IllegalArgumentException("Constraint must be a string"); addLayoutComponent((String) constraints, component);}
calcCompSize(Component comp, int what) {
private Dimension calcCompSize(Component comp, int what) {
calcCompSize(Component comp, int what){ if (comp == null || !comp.isVisible()) return new Dimension(0, 0); if (what == MIN) return comp.getMinimumSize(); else if (what == MAX) return comp.getMaximumSize(); return comp.getPreferredSize();}
calcSize(Container target, int what) {
private Dimension calcSize(Container target, int what) {
calcSize(Container target, int what){ synchronized (target.getTreeLock ()) { Insets ins = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Componen...
getHgap() {
public int getHgap() {
getHgap(){ return(hgap);}
getLayoutAlignmentX(Container parent) {
public float getLayoutAlignmentX(Container parent) {
getLayoutAlignmentX(Container parent){ return(parent.getAlignmentX());}
getLayoutAlignmentY(Container parent) {
public float getLayoutAlignmentY(Container parent) {
getLayoutAlignmentY(Container parent){ return(parent.getAlignmentY());}
getVgap() {
public int getVgap() {
getVgap(){ return(vgap);}
invalidateLayout(Container parent) { }
public void invalidateLayout(Container parent) { }
invalidateLayout(Container parent){}
layoutContainer(Container target) {
public void layoutContainer(Container target) {
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
Dimension t = target.getSize();
int targetWidth = target.getWidth(); int targetHeight = target.getHeight();
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
if (t.width <= i.right + e.width)
if (targetWidth <= i.right + e.width)
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
x3 = t.width - i.right - e.width; int ww = t.width - i.right - i.left;
x3 = targetWidth - i.right - e.width; int ww = targetWidth - i.right - i.left;
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
if (t.height <= i.bottom + s.height)
if (targetHeight <= i.bottom + s.height)
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
y3 = t.height - i.bottom - s.height;
y3 = targetHeight - i.bottom - s.height;
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_...
maximumLayoutSize(Container target) {
public Dimension maximumLayoutSize(Container target) {
maximumLayoutSize(Container target){ return calcSize(target, MAX);}
minimumLayoutSize(Container target) {
public Dimension minimumLayoutSize(Container target) {
minimumLayoutSize(Container target){ return calcSize(target, MIN);}
preferredLayoutSize(Container target) {
public Dimension preferredLayoutSize(Container target) {
preferredLayoutSize(Container target){ return calcSize(target, PREF);}
removeLayoutComponent(Component component) {
public void removeLayoutComponent(Component component) {
removeLayoutComponent(Component component){ if (north == component) north = null; if (south == component) south = null; if (east == component) east = null; if (west == component) west = null; if (center == component) center = null; if (firstItem == component) firstItem = null; if (lastItem == c...
setBounds(Component comp, int x, int y, int w, int h) {
private void setBounds(Component comp, int x, int y, int w, int h) {
setBounds(Component comp, int x, int y, int w, int h){ if (comp == null) return; comp.setBounds(x, y, w, h);}
setHgap(int hgap) {
public void setHgap(int hgap) {
setHgap(int hgap){ this.hgap = hgap;}
setVgap(int vgap) {
public void setVgap(int vgap) {
setVgap(int vgap){ this.vgap = vgap;}
toString() {
public String toString() {
toString(){ return getClass().getName() + "[hgap=" + hgap + ",vgap=" + vgap + "]";}
final int[] table = this.table; if (table != null) { final int length = table.length; int lastPC = 0; for (int i = 0; i < length; i += 2) { final int o = table[i+1]; if (o > offset) { return lastPC; } else { lastPC = table[i+0]; } } } return 0; }
final int[] table = this.table; if (table != null) { final int length = table.length; int lastPC = 0; for (int i = 0; i < length; i += 2) { final int o = table[ i + 1]; if (o > offset) { return lastPC; } else { lastPC = table[ i + 0]; } } return lastPC; } else { return 0; } }
public int findPC(int offset) { final int[] table = this.table; if (table != null) { final int length = table.length; int lastPC = 0; for (int i = 0; i < length; i += 2) { final int o = table[i+1]; if (o > offset) { return lastPC; } else { lastPC = table[i+0]; } } } return 0; }
registerKeyboardAction();
registerKeyboardActions();
protected void installKeyboardActions() { // FIXME: create actions and keystrokes. registerKeyboardAction(); }
int fs = screenFields.getCurrentFieldShift();
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); } boolean updateField = false; boolean numericError = false; boolean updatePos = fals...
case 4:
protected boolean simulateKeyStroke(char c){ if (isStatusErrorCode() && !Character.isISOControl(c) && !keyProcessed) { restoreErrorLine(); setStatus(STATUS_ERROR_CODE,STATUS_VALUE_OFF,null); } boolean updateField = false; boolean numericError = false; boolean updatePos = fals...
if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); }
if (obj == null) return false;
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
return false;
return (obj.getClass() == this.getClass() && ((Media) obj).getValue() == this.getValue());
public boolean equals(Object obj) { if ((obj instanceof MediaName && this instanceof MediaName) || (obj instanceof MediaTray && this instanceof MediaTray) || (obj instanceof MediaSizeName && this instanceof MediaSizeName)) { return ((Media) obj).getValue() == this.getValue(); } ...
private final void secureSetAccessible(boolean flag) { if (flag && ((this instanceof Constructor && ((Constructor)this).getDeclaringClass() == Class.class) || ((Member)this).getDeclaringClass() == AccessibleObject.class)) throw new SecurityException( "Cannot make object accessible: " + this);
private final void secureSetAccessible(boolean flag) { if (flag && (this instanceof Constructor && ((Constructor) this).getDeclaringClass() == Class.class)) throw new SecurityException("Cannot make object accessible: " + this);
private final void secureSetAccessible(boolean flag) { if (flag && ((this instanceof Constructor && ((Constructor)this).getDeclaringClass() == Class.class) || ((Member)this).getDeclaringClass() == AccessibleObject.class)) throw new SecurityException( "Cannot make object accessible: " + this); this.flag ...
Frame frame) { super();
Frame awtFrame) { this.awtFrame = awtFrame;
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
desktopPane.add(this);
this.frame = new SwingFrame(awtFrame); desktopPane.add(frame);
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizable()); setIconifiable(true); setMaximizable(true); setClosable(true);
SwingToolkit.copyAwtProperties(awtFrame, this.frame); frame.getContentPane().setLayout(new SwingFrameLayout(this)); frame.setLocation(awtFrame.getLocation()); frame.setSize(awtFrame.getSize()); setResizable(awtFrame.isResizable()); frame.setIconifiable(true); frame.setMaximizable(true); frame.setClosable(true);
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
setIcon(frame.getState() == Frame.ICONIFIED);
frame.setIcon(awtFrame.getState() == Frame.ICONIFIED);
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
setState(frame.getState()); setTitle(frame.getTitle()); setIconImage(frame.getIconImage()); setMenuBar(frame.getMenuBar());
setState(awtFrame.getState()); frame.setTitle(awtFrame.getTitle()); setMenuBar(awtFrame.getMenuBar());
public SwingFramePeer(SwingToolkit toolkit, JDesktopPane desktopPane, Frame frame) { super(); this.toolkit = toolkit; desktopPane.add(this); SwingToolkit.copyAwtProperties(frame, this); getContentPane().setLayout(null); setLocation(frame.getLocation()); setSize(frame.getSize()); setResizable(frame.isResizabl...
getContentPane().add(peer);
frame.getContentPane().add(peer);
public void addAWTComponent(Component awtComponent, JComponent peer) { getContentPane().add(peer); }
System.err.println(e);
public void coalescePaintEvent(PaintEvent e) { System.err.println(e); }
public void createBuffers(int x, BufferCapabilities bufferCapabilities) {
public void createBuffers(int x, BufferCapabilities capabilities) throws AWTException {
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
public void flip(BufferCapabilities.FlipContents flipContents) {
public void flip(FlipContents contents) {
public void flip(BufferCapabilities.FlipContents flipContents) { }
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true;
public void requestFocus() { frame.requestFocus();
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { return true; }
public void setIconImage(Image im) {
public void setIconImage(Image image) {
public void setIconImage(Image im) { }
public void setMaximizedBounds(java.awt.Rectangle bounds) {
public void setMaximizedBounds(Rectangle r) {
public void setMaximizedBounds(java.awt.Rectangle bounds) { }
frame.setMenuBar(new SwingMenuBarPeer(mb));
public void setMenuBar(MenuBar mb) { }
if (state == Frame.ICONIFIED) { } else { }
public void setState(int state) { if (state == Frame.ICONIFIED) { } else // state == Frame.NORMAL { } }
configure(DEFAULT_CONFIG_FILE);
public Log () { configure(DEFAULT_CONFIG_FILE); }
public void configure(String configFileName) {
public static void configure(String configFileName) {
public void configure(String configFileName) { Properties props = new Properties(); //the property hashtable try { FileInputStream istream = new FileInputStream(configFileName); props.load(istream); istream.close(); } catch (IOException e) { System.err.println("Could not read configu...
public void debug(String msg) {
public static void debug(String msg) {
public void debug(String msg) { if (priority > Priority.DEBUG) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.debug()"); e.printStackTrace(); } }
public void defaultConfig() {
public static void defaultConfig() {
public void defaultConfig() { output = DEFAULT_OUTPUTSTREAM; priority = DEFAULT_PRIORITY; }
public void error(String msg) {
public static void error(String msg) {
public void error(String msg) { if (priority > Priority.ERROR) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.error()"); e.printStackTrace(); } }
public void info(String msg) {
public static void info(String msg) {
public void info(String msg) { if (priority > Priority.INFO) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.info()"); e.printStackTrace(); } }
public void warn(String msg) {
public static void warn(String msg) {
public void warn(String msg) { if (priority > Priority.WARN) return; try { output.write(msg.getBytes()); output.write(Constants.NEW_LINE.getBytes()); } catch (IOException e) { System.err.println("error in Log.warn()"); e.printStackTrace(); } }
KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode,
Frame top = tk.getTop(); if(top == null){ return; } KeyEvent me = new KeyEvent(top, id, time, modifiers, keyCode,
private void postEvent(int id, long time, int modifiers, int keyCode, char keyChar) { JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit(); KeyEvent me = new KeyEvent(tk.getTop(), id, time, modifiers, keyCode, keyChar); eventQueue.postEvent(me); }
int keyCode, char keyChar)
int keyCode, char keyChar, int keyLocation)
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN);
super(source, id, when, modifiers); this.keyCode = keyCode; this.keyChar = keyChar; this.keyLocation = keyLocation; if ((id == KEY_TYPED && (keyCode != VK_UNDEFINED || keyChar == CHAR_UNDEFINED)) || keyLocation < KEY_LOCATION_UNKNOWN || keyLocation > KEY_LOCATION_NUMPAD) throw new IllegalArgumentException();
public KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) { this(source, id, when, modifiers, keyCode, keyChar, KEY_LOCATION_UNKNOWN); }
{ new SecureRandom ().nextBytes(buffer); }
getDefaultPRNG().nextBytes(buffer);
protected void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else if (irnd != null) { try { irnd.nextBytes(buffer, 0, buffer.length); } catch (IllegalStateException x) { throw new RuntimeExceptio...
changes.firePropertyChange("cursorBottOffset", getStringProperty("cursorBottOffset"), cursorBottOffset.getText()); setProperty("cursorBottOffset",cursorBottOffset.getText());
private void applyAttributes() { if (!getStringProperty("font").equals( (String)fontsList.getSelectedItem()) ) { changes.firePropertyChange("font", getStringProperty("font"), (String)fontsList.getSelectedItem()); setProper...
cuPanel.add(bottOffPanel);
private void jbInit() throws Exception { changes = new PropertyChangeSupport(this); Dimension ps = null; // fonts Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); // define fonts panel final JPanel fp = new JPanel(); fp.setLayout(new BorderLayout());...
boolean fit = true; Dimension size; if (this.getSize().width == 0 && this.getSize().width == 0) size = this.getPreferredSize(); else size = this.getSize(); if ((size.width > (rootContainer.getWidth() - popupLocation.x)) || (size.height > (rootContainer.getHeight() - popupLocation.y))) fit = false; if (lightWeightPop...
if ((size.width > (rootContainer.getWidth() - popupLocation.x)) || (size.height > (rootContainer.getHeight() - popupLocation.y))) fit = false; if (lightWeightPopupEnabled && fit) popup = new LightWeightPopup(this); else { if (fit) popup = new MediumWeightPopup(this); else { popup = new HeavyWeightPopup(this); setLightW...
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
Point p = new Point(popupLocation.x, popupLocation.y); SwingUtilities.convertPointFromScreen(p, layeredPane);
Point p = new Point(popupLocation.x, popupLocation.y); if (layeredPane.isShowing()) SwingUtilities.convertPointFromScreen(p, layeredPane);
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
} } else { firePopupMenuWillBecomeInvisible(); popup.hide();
} } else { firePopupMenuWillBecomeInvisible(); popup.hide(); }
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
}
public void setVisible(boolean visible) { if (visible == isVisible()) return; boolean old = isVisible(); this.visible = visible; if (old != isVisible()) { firePropertyChange("visible", old, isVisible()); if (visible) { firePopupMenuWillBecomeVisible(); Container rootContainer = (Con...
setInvoker(component); Point p = new Point(x, y); SwingUtilities.convertPointToScreen(p, component); setLocation(p.x, p.y); setVisible(true);
if (component.isShowing()) { setInvoker(component); Point p = new Point(x, y); SwingUtilities.convertPointToScreen(p, component); setLocation(p.x, p.y); setVisible(true); }
public void show(Component component, int x, int y) { setInvoker(component); Point p = new Point(x, y); SwingUtilities.convertPointToScreen(p, component); setLocation(p.x, p.y); setVisible(true); }
if(isRootDirectory(path)) return path;
public static final String toCanonicalForm(String path) { /*?? if(path.indexOf('.') < 0 && path.indexOf("..") < 0) return path; */ String tmppath = path.replace('/', separatorChar); StringBuffer canonpath; // We found it'll be more efficient and easy to handle to // return a lowercased canonic...
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {
public synchronized void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
synchronized (lock) {
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
lock.notify(); }
public void drawImageBuffer(Graphics2D gg2d,int x, int y, int width, int height) {// synchronized (lock) { gg2d.drawImage(bi.getSubimage(x,y,width,height),null,x,y);// } }
super.layoutMajorAxis(targetSpan, axis, offsets, spans);
super.layoutMinorAxis(targetSpan, axis, offsets, spans);
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans) { // FIXME: Figure out how to fetch the row heights from the TableView's // element. super.layoutMajorAxis(targetSpan, axis, offsets, spans); }
int viewCount = getViewCount(); if (columnRequirements == null || viewCount > columnRequirements.length) { columnRequirements = new SizeRequirements[viewCount]; for (int i = 0; i < columnRequirements.length; i++) columnRequirements[i] = new SizeRequirements(); } if (columnOffsets == null || columnOffsets.length < viewC...
public void replace(int offset, int length, View[] views) { super.replace(offset, length, views); layoutChanged(X_AXIS); }
int numChildren = el.getElementCount(); View[] rows = new View[numChildren]; for (int i = 0; i < numChildren; ++i) { Element rowEl = el.getElement(i); TableRow rowView = createTableRow(rowEl); rows[i] = rowView; } replace(0, 0, rows);
public TableView(Element el) { super(el, Y_AXIS); int numChildren = el.getElementCount(); View[] rows = new View[numChildren]; for (int i = 0; i < numChildren; ++i) { Element rowEl = el.getElement(i); TableRow rowView = createTableRow(rowEl); rows[i] = rowView; } replace...
updateColumnRequirements(); SizeRequirements r = calculateMinorAxisRequirements(X_AXIS, null); SizeRequirements.calculateTiledPositions(targetSpan, r, columnRequirements, offsets, spans);
protected void layoutColumns(int targetSpan, int[] offsets, int spans[], SizeRequirements[] reqs) { // TODO: Figure out what exactly to do here. }
String[] getValues(Argument arg) { return (String[])args.get(arg); }
final String[] getValues(Argument arg) { return (String[]) args.get(arg); }
String[] getValues(Argument arg) { return (String[])args.get(arg); }
boolean isSet(Parameter param) { return args.containsKey(param); }
final boolean isSet(Parameter param) { return args.containsKey(param); }
boolean isSet(Parameter param) { return args.containsKey(param); }
public int size() { return args.size(); }
public final int size() { return args.size(); }
public int size() { return args.size(); }
stopCellEditing();
public void actionPerformed(ActionEvent event) { // TODO } // actionPerformed()
fireEditingCanceled();
public void cancelCellEditing() { // TODO } // cancelCellEditing()
return null;
return value;
public Object getCellEditorValue() { return null; // TODO } // getCellEditorValue()
return false;
if (!(event instanceof MouseEvent)) return true; return false;
public boolean isCellEditable(EventObject event) { return false; // TODO } // isCellEditable()
stopCellEditing();
public void itemStateChanged(ItemEvent event) { // TODO } // itemStateChanged()
public void setValue(Object event)
public void setValue(Object value)
public void setValue(Object event) { }
this.value = value;
public void setValue(Object event) { }
return false;
return true;
public boolean shouldSelectCell(EventObject event) { return false; // TODO } // shouldSelectCell()
return false;
return true;
public boolean startCellEditing(EventObject event) { return false; // TODO } // startCellEditing()
return false;
fireEditingStopped(); return true;
public boolean stopCellEditing() { return false; // TODO } // stopCellEditing()