rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
}
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
}
public void endDraggingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
}
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
}
public void endResizingFrame(JComponent component) { if (currentDragMode == JDesktopPane.OUTLINE_DRAG_MODE) { setBoundsForFrame((JInternalFrame) component, dragCache.x, dragCache.y, dragCache.width, dragCache.height); pane = null; dragCache = null; } component.repaint(...
component.revalidate(); if (component.getParent() != null) component.getParent().repaint(); else component.repaint();
public void setBoundsForFrame(JComponent component, int newX, int newY, int newWidth, int newHeight) { component.setBounds(newX, newY, newWidth, newHeight); component.revalidate(); // If not null, I'd rather repaint the parent if (component.getParent() != null) compone...
throw new BAD_OPERATION("Binding expected");
BAD_OPERATION bad = new BAD_OPERATION("Binding expected"); bad.minor = Minor.Any; bad.initCause(ex); throw bad;
public static Binding extract(Any a) { try { return ((BindingHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding expected"); } }
screen52.homePos = hPos;
screen52.setPendingInsert(true,screen52.getRow(pos), screen52.getCol(pos));
public final void restoreScreen() throws IOException { int which = 0; try {// System.out.println("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 ...
Component[] children = AWTUtilities.getVisibleChildren(parent);
List children = AWTUtilities.getVisibleChildren(parent);
void layoutAlgorithm(Container parent, Direction layoutDir, Direction crossDir) { if (parent != container) throw new AWTError("invalid parent"); Dimension parentSize = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(parentSize.width - insets.left ...
for (int i = 0; i < children.length; i++)
for (Iterator i = children.iterator(); i.hasNext();)
void layoutAlgorithm(Container parent, Direction layoutDir, Direction crossDir) { if (parent != container) throw new AWTError("invalid parent"); Dimension parentSize = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(parentSize.width - insets.left ...
Component c = children[i];
Component c = (Component) i.next();
void layoutAlgorithm(Container parent, Direction layoutDir, Direction crossDir) { if (parent != container) throw new AWTError("invalid parent"); Dimension parentSize = parent.getSize(); Insets insets = parent.getInsets(); Dimension innerSize = new Dimension(parentSize.width - insets.left ...
Component[] children = AWTUtilities.getVisibleChildren(parent);
List children = AWTUtilities.getVisibleChildren(parent);
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
for (int index = 0; index < children.length; index++)
for (Iterator i = children.iterator(); i.hasNext();)
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
Component comp = children[index];
Component comp = (Component) i.next();
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.top + insets.bottom; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
Component[] children = AWTUtilities.getVisibleChildren(parent);
List children = AWTUtilities.getVisibleChildren(parent);
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
for (int index = 0; index < children.length; index++)
for (Iterator i = children.iterator(); i.hasNext();)
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
Component comp = children[index];
Component comp = (Component) i.next();
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = insets.left + insets.right; int y = insets.bottom + insets.top; Component[] children = AWTUtilities.getVisibleChildren(parent); ...
Component[] children = AWTUtilities.getVisibleChildren(parent);
List children = AWTUtilities.getVisibleChildren(parent);
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; Component[] children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { ...
for (int index = 0; index < children.length; index++)
for (Iterator i = children.iterator(); i.hasNext();)
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; Component[] children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { ...
Component comp = children[index];
Component comp = (Component) i.next();
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; Component[] children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { ...
if (CurrentArray.getDataCube().getHref() != null) DATABLOCK.append(getHrefData(CurrentArray.getDataCube().getHref()));
public Object action (SaxDocumentHandler handler, AttributeList attrs) { // we only need to do these things for the first time we enter // a data node if (DataNodeLevel == 0) { // update the array dataCube with passed attributes CurrentArray.getDataCube().setXM...
XDF.setXMLNotationHash(Notation);
public void endDocument() throws SAXException { // do nothing, method required by interface }
printJob.setPrintable (this);
printJob.setPrintable (this,pf);
public void run () {// Toolkit tk = Toolkit.getDefaultToolkit();//int [][] range = new int[][] {//new int[] { 1, 1 }//};// JobAttributes jobAttributes = new JobAttributes(1, JobAttributes.DefaultSelectionType.ALL, JobAttributes.DestinationType.PRINTER, JobAttributes.DialogType.NONE, "file", 1, 1, JobAttributes.Multi...
AbstractButton.this.fireStateChanged(); repaint();
public void stateChanged(ChangeEvent ev) { }
return new ChangeListener() { public void stateChanged(ChangeEvent e) { AbstractButton.this.fireStateChanged(); AbstractButton.this.repaint(); } };
return new ButtonChangeListener();
protected ChangeListener createChangeListener() { return new ChangeListener() { public void stateChanged(ChangeEvent e) { AbstractButton.this.fireStateChanged(); AbstractButton.this.repaint(); } }; }
if (b == isEnabled()) return;
public void setEnabled(boolean b) { super.setEnabled(b); ButtonModel mod = getModel(); if (mod != null) mod.setEnabled(b); }
viewport.setBounds(new Rectangle(x2, y2, x3 - x2, y3 - y2));
viewport.setBounds(new Rectangle(x2 + vpi.left, y2 + vpi.top, x3 - x2 - vpi.left - vpi.right, y3 - y2 - vpi.top - vpi.bottom));
public void layoutContainer(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; JViewport viewport = sc.getViewport(); Component view = viewport.getView(); // If there is no v...
Border vpBorder = sc.getViewportBorder(); if (vpBorder != null) { i = vpBorder.getBorderInsets(sc); width += i.left + i.right; height += i.top + i.bottom; }
public Dimension minimumLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Insets i = sc.getInsets(); Dimension viewportMinSize = sc.getViewport().getMinimumSize(); int width ...
Border vpBorder = sc.getViewportBorder(); if (vpBorder != null) { Insets i = vpBorder.getBorderInsets(sc); width += i.left + i.right; height += i.top + i.bottom; }
public Dimension preferredLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getPreferredSize(); Dimension viewSize = viewport.getViewSize(...
super.fireVetoableChange(name, new Boolean(oldValue), new Boolean(newValue));
super.fireVetoableChange(name, Boolean.valueOf(oldValue), Boolean.valueOf(newValue));
private void fireVetoableChange(String name, boolean oldValue, boolean newValue) throws PropertyVetoException { super.fireVetoableChange(name, new Boolean(oldValue), new Boolean(newValue)); }
static final void applicationProcessorMain() {
static final void applicationProcessorMain() throws PragmaLoadStatics {
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor)Unsafe.getCurrentProcessor(); BootLog.info("Starting Application Processor " + cpu.getId()); // First force a load of CPUID cpu.getCPUID(); // Detect and start logical CPU's tr...
gdt.dump(System.out);
private final void setupStructures() { // Clone GDT this.gdt = new GDT(); gdt.setBase(GDT.PROCESSOR_ENTRY, Address.valueOf(this)); // Clone TSS this.tss = new TSS(); gdt.setBase(GDT.TSS_ENTRY, tss.getAddress()); // Create kernel stack tss.setKe...
BootLog.info("Not busy");
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = Unsafe.getCurrentProcessor(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId()...
BootLog.info("loop 5000"); TimeUtils.loop(5000);
final void startup(ResourceManager rm) throws ResourceNotFreeException { // Save resource manager, so when this processor starts, it can be // used right away. this.rm = rm; final VmProcessor me = Unsafe.getCurrentProcessor(); BootLog.info("Startup of 0x" + NumberUtils.hex(getId()...
String str = (String)constraints; if (str == null || str.equals(CENTER)) center = component; else if (str.equals(NORTH)) north = component; else if (str.equals(SOUTH)) south = component; else if (str.equals(EAST)) east = component; else if (str.equals(WEST)) west = component; else if (str.equals(BEFORE_FIRST_LINE)) fi...
addLayoutComponent((String) constraints, component);
addLayoutComponent(Component component, Object constraints){ if (constraints != null && ! (constraints instanceof String)) throw new IllegalArgumentException("Constraint must be a string"); String str = (String)constraints; if (str == null || str.equals(CENTER)) center = component; else if (str.equals(NORTH))...
if (comp == null)
if (comp == null || !comp.isVisible())
calcCompSize(Component comp, int what){ if (comp == null) return new Dimension(0, 0); if (what == MIN) return comp.getMinimumSize(); else if (what == MAX) return comp.getMaximumSize(); return comp.getPreferredSize();}
int x3 = t.width - i.right - e.width;
int x3 = Math.max(x2 + w.width + hgap, t.width - 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_...
int y3 = t.height - i.bottom - s.height;
int midh = Math.max(e.height, Math.max(w.height, c.height)); int y3 = Math.max(y2 + midh + vgap, t.height - 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_...
public void keyPressed(KeyEvent e)
public void keyPressed(KeyEvent evt)
public void keyPressed(KeyEvent e) { }
else if (evt.isShiftDown()) { colModel.setLeadSelectionIndex(0); rowModel.setLeadSelectionIndex(rowLead); } else { table.clearSelection(); rowModel.setSelectionInterval(rowLead, rowLead); colModel.setSelectionInterval(0, 0); } } else if (evt.getKeyCode() == KeyEvent.VK_F2) { } else if (evt.getKeyCode() == KeyEvent.VK_...
public void keyPressed(KeyEvent e) { }
if (table.getRowSelectionAllowed()) {
private void updateSelection(boolean controlPressed) { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) ...
}
private void updateSelection(boolean controlPressed) { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) ...
if (table.getColumnSelectionAllowed()) {
private void updateSelection(boolean controlPressed) { if (table.getRowSelectionAllowed()) { int lo_row = table.rowAtPoint(begin); int hi_row = table.rowAtPoint(curr); ListSelectionModel rowModel = table.getSelectionModel(); if (lo_row != -1 && hi_row != -1) ...
doInput = true;
public Connection(URL url) { super (url); permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); }
throw new BAD_OPERATION(method, 0, CompletionStatus.COMPLETED_MAYBE);
throw new BAD_OPERATION(method, Minor.Method, CompletionStatus.COMPLETED_MAYBE);
public final OutputStream _invoke(String method, InputStream input, ResponseHandler rh ) { OutputStream output = null; if (method.equals("destroy")) { // The "destroy" has been invoked. destroy(); output = rh.createReply(); ...
public FatLfnDirectory(FatFileSystem fs, int nrEntries) { super(fs, nrEntries);
public FatLfnDirectory(FatFileSystem fs, FatFile file) throws IOException { super(fs, file);
public FatLfnDirectory(FatFileSystem fs, int nrEntries) { super(fs, nrEntries); }
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException {
protected synchronized void write() throws IOException {
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { if (label != null) applyLabel(); final byte[] data = new byte[entries.size() * 32]; write(data); device.write(offset, data, 0, data.length); resetDirty(); }
device.write(offset, data, 0, data.length);
file.write(0, data, 0, data.length);
public synchronized void write(BlockDeviceAPI device, long offset) throws IOException { if (label != null) applyLabel(); final byte[] data = new byte[entries.size() * 32]; write(data); device.write(offset, data, 0, data.length); resetDirty(); }
defaults.put("List.focusCellHighlightBorder", new LineBorderUIResource(getPrimary1()));
public void addCustomEntriesToTable(UIDefaults defaults) { // Gradients. defaults.put("Button.gradient", Arrays.asList(new Object[] {new Float(0.3), new Float(0.0), new ColorUIResource(221, 232, 243), new ColorUIResource(Color.WHITE), new ColorUIResource(184, 207, 229)})); defaults.put("CheckBox....
if (accessibleContext == null) accessibleContext = new AccessibleBoxFiller();
public AccessibleContext getAccessibleContext() { // FIXME: disable to make libjava compile; visibility rules are broken // if (accessibleContext == null) // accessibleContext = new AccessibleBoxFiller(); return accessibleContext; }
if (accessibleContext == null) accessibleContext = new AccessibleBox();
public AccessibleContext getAccessibleContext() { // if (accessibleContext == null) // accessibleContext = new AccessibleBox(); return accessibleContext; }
if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else {
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP...
}
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false); setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(true); loadProps(); screen = new Screen5250(this,defaultProps); this.addComponentListener(this); if (!defaultP...
if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else {
public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } }
}
public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { screen.sendKeys("[enter]"); } else { screen.moveCursor(e); repaint(); getFocusForMe(); } }
Session s = manager.openSession(sesProps,"","Test Applet"); s.grabFocus();
final Session s = manager.openSession(sesProps,"","Test Applet");
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if ...
SwingUtilities.invokeLater(new Runnable() { public void run() { s.grabFocus(); } });
private void jbInit() throws Exception { this.setSize(new Dimension(400,300)); Properties sesProps = new Properties(); // Start loading properties - Host must exist sesProps.put(SESSION_HOST,getParameter("host")); if (isSpecified("-e")) sesProps.put(SESSION_TN_ENHANCED,"1"); if ...
throw new Error("Not implemented");
return new URLAudioClip(url);
public static final AudioClip newAudioClip(URL url) { // This requires an implementation of AudioClip in gnu.java.applet. throw new Error("Not implemented"); }
return super.paramString();
StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",defaultIcon="); if (icon != null) sb.append(icon); sb.append(",disabledIcon="); if (disabledIcon != null) sb.append(disabledIcon); sb.append(",horizontalAlignment="); sb.append(SwingUtilities.convertHorizontalAlignmentCodeToString( horizontalAlignment...
protected String paramString() { return super.paramString(); }
Component oldLabelFor = labelFor;
public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t...
labelFor = c;
public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t...
firePropertyChange("labelFor", oldLabelFor, labelFor);
public void setLabelFor(Component c) { if (c != labelFor) { // We put the label into the client properties for the labeled // component so that it can be read by the AccessibleJComponent. // The other option would be to reserve a default visible field // in JComponent, but since t...
protected AbstractDirectory(FatFileSystem fs, FatFile myFile) { this(fs, (int)myFile.getLength() / 32, myFile);
protected AbstractDirectory(FatFileSystem fs, int nrEntries) { super(fs); entries.setSize(nrEntries); _dirty = false;
protected AbstractDirectory(FatFileSystem fs, FatFile myFile) { this(fs, (int)myFile.getLength() / 32, myFile); }
int len = sortKeys.size();
int len = sortKeys != null ? sortKeys.size() : 0;
TemplateNode clone(Stylesheet stylesheet) { int len = sortKeys.size(); List sortKeys2 = new ArrayList(len); for (int i = 0; i < len; i++) sortKeys2.add(((Key) sortKeys.get(i)).clone(stylesheet)); len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) ...
exp = exp.replaceAll("%"+(i + 1), params[i]);
String par = params[i]; par = (par == null) ? "" : par.trim(); exp = exp.replaceAll("%"+(i + 1), par);
public String expand(String[] params){ //if(paramCount != params.length) return null; String exp = body; for(int i = 0; i < localLabels.length; i++){ exp = exp.replaceAll(localLabels[i], "__jnasm_macro_local_label_" + localLabelCount ++); } for(int i = 0; i < params.len...
exp = exp.replaceAll("%"+(i + 1), defaultValues[i - params.length]);
String def = defaultValues[i - params.length]; def = (def == null) ? "" : def.trim(); exp = exp.replaceAll("%"+(i + 1), def);
public String expand(String[] params){ //if(paramCount != params.length) return null; String exp = body; for(int i = 0; i < localLabels.length; i++){ exp = exp.replaceAll(localLabels[i], "__jnasm_macro_local_label_" + localLabelCount ++); } for(int i = 0; i < params.len...
public Boolean isTraversable(File value0) { return null; }
public Boolean isTraversable(File directory) { return null; }
public Boolean isTraversable(File value0) { return null; // TODO } // isTraversable()
MenuComponent() {
public MenuComponent() {
MenuComponent(){ if (GraphicsEnvironment.isHeadless()) throw new HeadlessException ();}
getFont() {
public Font getFont() {
getFont(){ if (font != null) return font; if (parent != null) return parent.getFont (); return null;}
getName() { return(name); }
public String getName() { return name; }
getName(){ return(name);}
getTreeLock() { return(tree_lock); }
protected final Object getTreeLock() { return tree_lock; }
getTreeLock(){ return(tree_lock);}
{ return false; }
{ boolean retVal = false; MenuContainer parent = getParent(); if (parent == null) { if (this instanceof MenuBar) { MenuBar menuBar = (MenuBar) this; if (menuBar.frame != null) retVal = menuBar.frame.postEvent(event); } } else retVal = parent.postEvent(event); return retVal; }
postEvent(Event event){ // This is overridden by subclasses that support events. return false;}
setFont(Font font) {
public void setFont(Font font) {
setFont(Font font){ this.font = font;}
setName(String name) {
public void setName(String name) {
setName(String name){ this.name = name; nameExplicitlySet = true;}
setParent(MenuContainer parent) {
final void setParent(MenuContainer parent) {
setParent(MenuContainer parent){ this.parent = parent;}
setTreeLock(Object tree_lock) { this.tree_lock = tree_lock; }
final void setTreeLock(Object treeLock) { this.tree_lock = treeLock; }
setTreeLock(Object tree_lock){ this.tree_lock = tree_lock;}
toString() { return this.getClass().getName() + "[" + paramString() + "]"; }
public String toString() { return getClass().getName() + "[" + paramString() + "]"; }
toString(){ return this.getClass().getName() + "[" + paramString() + "]";}
Accessible child = getAccessibleChild(index); if (child != null && child instanceof JMenuItem) { JMenuItem mi = (JMenuItem) child; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); msm.setSelectedPath(createPath(JMenu.this)); }
public void addAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. }
MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] oldSelection = msm.getSelectedPath(); for (int i = 0; i < oldSelection.length; i++) { if (oldSelection[i] == JMenu.this) { MenuElement[] newSel = new MenuElement[i]; System.arraycopy(oldSelection, 0, newSel, 0, i); msm.setSelectedPath(new...
public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
return null;
Component[] children = getMenuComponents(); int count = 0; Accessible found = null; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) { if (count == index) { found = (Accessible) children[i]; break; } count++; } } return found;
public Accessible getAccessibleChild(int value0) throws NotImplementedException { return null; }
return 0;
Component[] children = getMenuComponents(); int count = 0; for (int i = 0; i < children.length; i++) { if (children[i] instanceof Accessible) count++; } return count;
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
return 0;
int count = 0; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { for (int i = 0; i < me.length; i++) { if (me[i] == JMenu.this) { if (i + 1 < me.length) { count = 1; break; } } } } return count;
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
return false;
boolean selected = false; MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] me = msm.getSelectedPath(); if (me != null) { Accessible toBeFound = getAccessibleChild(index); for (int i = 0; i < me.length; i++) { if (me[i] == toBeFound) { selected = true; break; } } } return selected;
public boolean isAccessibleChildSelected(int value0) throws NotImplementedException { return false; }
Accessible child = getAccessibleChild(index); if (child != null) { MenuSelectionManager msm = MenuSelectionManager.defaultManager(); MenuElement[] oldSelection = msm.getSelectedPath(); for (int i = 0; i < oldSelection.length; i++) { if (oldSelection[i] == child) { MenuElement[] newSel = new MenuElement[i - 1]; System...
public void removeAccessibleSelection(int value0) throws NotImplementedException { // TODO: Implement this properly. }
int pos = 0;
int pos = s.offset;
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font...
public synchronized void addNotify() { if (peer != null) {
addNotify() { if (peer != null) {
public synchronized void addNotify() { if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify(); }
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))
dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0))
void dispatchEventImpl(AWTEvent e) { if (e.id <= ItemEvent.ITEM_LAST && e.id >= ItemEvent.ITEM_FIRST && (item_listeners != null || (eventMask & AWTEvent.ITEM_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
public Object[] getSelectedObjects() {
getSelectedObjects() {
public Object[] getSelectedObjects() { if (state == false) return (null); Object[] obj = new Object[1]; obj[0] = getLabel(); return (obj); }
public boolean getState() { return (state); }
getState() { return(state); }
public boolean getState() { return (state); }
public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); }
paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); }
public String paramString() { return ("label=" + getLabel() + ",state=" + state + "," + super.paramString()); }
protected void processEvent(AWTEvent event) {
processEvent(AWTEvent event) {
protected void processEvent(AWTEvent event) { if (event instanceof ItemEvent) processItemEvent((ItemEvent) event); else super.processEvent(event); }
protected void processItemEvent(ItemEvent event) {
processItemEvent(ItemEvent event) {
protected void processItemEvent(ItemEvent event) { if (item_listeners != null) item_listeners.itemStateChanged(event); }
public synchronized void removeItemListener(ItemListener listener) {
removeItemListener(ItemListener listener) {
public synchronized void removeItemListener(ItemListener listener) { item_listeners = AWTEventMulticaster.remove(item_listeners, listener); }
final Vm vm = new Vm(arch, null, cl.getStatics(), false);
final Vm vm = new Vm("?", arch, null, cl.getStatics(), false);
private void doExecute() throws BuildException, ClassNotFoundException, IllegalAccessException, IOException { final VmArchitecture arch = getArchitecture(); final int slotSize = arch.getReferenceSize(); VmSystemClassLoader cl = new VmSystemClassLoader(classesURL, arch); final Vm vm = new Vm(arch, null, cl.getStati...
} }; sendMenu.add(action); action = new AbstractAction(LangTool.getString("popup.toImage")) { public void actionPerformed(ActionEvent e) { sendMeToImageFile();
private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getPosFromView(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { action =...
doConnections(); }
sendMeToImageFile(); }
public void actionPerformed(ActionEvent e) { doConnections(); }
changeConnection(); getFocusForMe(); }
doConnections(); }
public void actionPerformed(ActionEvent e) { changeConnection(); getFocusForMe(); }
closeSession(); }
changeConnection(); getFocusForMe(); }
public void actionPerformed(ActionEvent e) { closeSession(); }
if (((String)hm.getSelectedValue()).length() > 7)
if (((String)hm.getSelectedValue()).length() > 8)
private void showHexMap() { JPanel srp = new JPanel(); srp.setLayout(new BorderLayout()); DefaultListModel listModel = new DefaultListModel(); StringBuffer sb = new StringBuffer(); // we will use a collator here so that we can take advantage of the locales Collator collator = Collator.g...
this.className = className;
this.declaringClass = className;
StackTraceElement(String fileName, int lineNumber, String className, String methodName, boolean isNative) { this.fileName = fileName; this.lineNumber = lineNumber; this.className = className; this.methodName = methodName; this.isNative = isNative; }
&& equals(className, e.className)
&& equals(declaringClass, e.declaringClass)
public boolean equals(Object o) { if (! (o instanceof StackTraceElement)) return false; StackTraceElement e = (StackTraceElement) o; return equals(fileName, e.fileName) && lineNumber == e.lineNumber && equals(className, e.className) && equals(methodName, e.methodName); }