rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
else if (e.getActionCommand().equals("scrollRightChangeSelection")) | else if (command.equals("scrollRightChangeSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("selectPreviousColumn")) | else if (command.equals("selectPreviousColumn")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollLeftChangeSelection")) | else if (command.equals("scrollLeftChangeSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("clearSelection")) | else if (command.equals("clearSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("cancel")) | else if (command.equals("cancel")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("selectNextRowCell") || e.getActionCommand().equals("selectPreviousRowCell") || e.getActionCommand().equals("selectNextColumnCell") || e.getActionCommand().equals("selectPreviousColumnCell")) | else if (command.equals("selectNextRowCell") || command.equals("selectPreviousRowCell") || command.equals("selectNextColumnCell") || command.equals("selectPreviousColumnCell")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
if (e.getActionCommand().indexOf("Column") != -1) | if (command.indexOf("Column") != -1) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
(e.getActionCommand().equals | (command.equals | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("selectNextColumn")) | else if (command.equals("selectNextColumn")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollLeftExtendSelection")) | else if (command.equals("scrollLeftExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollDownChangeSelection")) | else if (command.equals("scrollDownChangeSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollRightExtendSelection")) | else if (command.equals("scrollRightExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("selectAll")) | else if (command.equals("selectAll")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("selectLastRowExtendSelection")) | else if (command.equals("selectLastRowExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollDownExtendSelection")) | else if (command.equals("scrollDownExtendSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
else if (e.getActionCommand().equals("scrollUpChangeSelection")) | else if (command.equals("scrollUpChangeSelection")) | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
if (table.isEditing() && e.getActionCommand() != "startEditing") table.editingCanceled(new ChangeEvent("update")); table.repaint(); | if (table.isEditing() && command != "startEditing" && command != "addToSelection") table.editingStopped(new ChangeEvent("update")); | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... |
table.repaint(); | public void actionPerformed (ActionEvent e) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colL... | |
public NetworkException(String message, Throwable cause) { super(message); initCause(cause); | public NetworkException() { super(); | public NetworkException(String message, Throwable cause) { super(message); initCause(cause); } |
if (instance == null) | if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalComboBoxUI instance; if (o == null) { | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalComboBoxUI(); return instance; } |
instances.put(component, instance); } else instance = (MetalComboBoxUI) o; | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalComboBoxUI(); return instance; } | |
screen52.setPendingInsert(false,1,1); | screen52.setPendingInsert(false); | private void processCC1 (byte byte1) {// System.out.println(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); if ((byte1 & 0x04) == 0x04) { Toolkit.getDefaultToolkit().beep(); } if ((byte1 & 0x02) == 0x02) { screen52.setMessageLightOff(); } if ((byte1 & 0x01) ==... |
screen52.setPendingInsert(true); } | private void processCC1 (byte byte1) {// System.out.println(" Control byte1 " + Integer.toBinaryString(byte1 & 0xff)); if ((byte1 & 0x04) == 0x04) { Toolkit.getDefaultToolkit().beep(); } if ((byte1 & 0x02) == 0x02) { screen52.setMessageLightOff(); } if ((byte1 & 0x01) ==... | |
case 20: | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
icY <= saCols) | icY <= saCols) { | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... |
} else { sendNegResponse(NR_REQUEST_ERROR,0x05,0x01,0x22," IC/IM position invalid "); error = true; } break; case 20: int imcX = bk.getNextByte(); int imcY = bk.getNextByte() & 0xff; if (imcX >= 0 && imcX <= saRows && imcY >= 0 && imcY <= saCols) { screen52.setPendingInsert(false,imcX,imcY); } | private boolean writeToDisplay(boolean controlsExist) { int pos = 0; boolean error=false; boolean done=false; int attr; byte nextOne; byte control0 = 0; byte control1 = 0; int saRows = screen52.getRows(); int saCols = screen52.getCols(); try { if (controlsExi... | |
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding ) | public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant) | public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding ) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDisc... |
checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); if (applies(IdUniquenessPolicyValue.UNIQUE_ID)) { activeObjectMap.Obj sx = aom.findServant(a_servant, false); if (sx != null) throw new ServantAlreadyActive(); } activeObjectMap.Obj exists = aom.get(an_Object_Id); if (exists != null) { if (exists.serv... | activate_object_with_id(an_Object_Id, a_servant, false); | public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding ) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDisc... |
public TRANSIENT(String reason, int minor, CompletionStatus completed) | public TRANSIENT(String message) | public TRANSIENT(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } |
super(reason, minor, completed); | super(message, 0, CompletionStatus.COMPLETED_NO); | public TRANSIENT(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); } |
public void setLocation(Point2D p) { setLocation(p.getX(), p.getY()); } | public abstract void setLocation(double x, double y); | public void setLocation(Point2D p) { setLocation(p.getX(), p.getY()); } |
if (isAcceleratorHidden()) return super.getPreferredSize(c); else { Insets insets = c.getInsets(); JToolTip tt = (JToolTip) c; String tipText = tt.getTipText(); if (tipText != null) | Dimension d = super.getPreferredSize(c); String acc = getAcceleratorString(); if (acc != null && ! acc.equals("")) | public Dimension getPreferredSize(JComponent c) { if (isAcceleratorHidden()) return super.getPreferredSize(c); else { Insets insets = c.getInsets(); JToolTip tt = (JToolTip) c; String tipText = tt.getTipText(); if (tipText != null) { FontMetrics fm = c.... |
int prefH = fm.getHeight() + insets.top + insets.bottom; int prefW = fm.stringWidth(tipText) + insets.left + insets.right; acceleratorString = fetchAcceleratorString(c); if (acceleratorString != null) { prefW += padSpaceBetweenStrings; fm = c.getFontMetrics(acceleratorFont); prefW += fm.stringWidth(acceleratorString... | d.width += fm.stringWidth(acc); | public Dimension getPreferredSize(JComponent c) { if (isAcceleratorHidden()) return super.getPreferredSize(c); else { Insets insets = c.getInsets(); JToolTip tt = (JToolTip) c; String tipText = tt.getTipText(); if (tipText != null) { FontMetrics fm = c.... |
return d; | public Dimension getPreferredSize(JComponent c) { if (isAcceleratorHidden()) return super.getPreferredSize(c); else { Insets insets = c.getInsets(); JToolTip tt = (JToolTip) c; String tipText = tt.getTipText(); if (tipText != null) { FontMetrics fm = c.... | |
JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = t.getFontMetrics(tip.getFont()); int as... | super.paint(g, c); | public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); Toolkit t = tip.getToolkit(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr... |
super(ClassLoader.getSystemResource("/org/jnode/security/jnode.policy")); | this.policyFile = new PolicyFile(ClassLoader.getSystemResource("/org/jnode/security/jnode.policy")); | public JNodePolicy(ExtensionPoint permissionsEp) { super(ClassLoader.getSystemResource("/org/jnode/security/jnode.policy")); this.codeSource2Permissions = new HashMap(); this.permissionsEp = permissionsEp; loadExtensions(); } |
protected void addPermissions(CodeSource codeSource, Permissions perms) { | protected void addPermissions(CodeSource codeSource, PermissionCollection perms) { | protected void addPermissions(CodeSource codeSource, Permissions perms) { for (Iterator it = codeSource2Permissions.entrySet().iterator(); it .hasNext();) { final Map.Entry e = (Map.Entry) it.next(); final CodeSource cs = (CodeSource) e.getKey(); if (cs.implies... |
super.refresh(); | policyFile.refresh(); | public synchronized void refresh() { super.refresh(); loadExtensions(); } |
this.width = (int) (w * units + 0.5f); this.height = (int) (h * units + 0.5f); | this.w = (int) (w * units + 0.5f); this.h = (int) (h * units + 0.5f); | public MediaPrintableArea(float x, float y, float w, float h, int units) { if (x < 0.0f || y < 0.0f || w <= 0.0f || h <= 0.0f) throw new IllegalArgumentException(); this.x = (int) (x * units + 0.5f); this.y = (int) (y * units + 0.5f); this.width = (int) (w * units + 0.5f); this.height = (int) (h ... |
&& width == tmp.getWidth(1) && height == tmp.getHeight(1)); | && w == tmp.getWidth(1) && h == tmp.getHeight(1)); | public boolean equals(Object obj) { if (! (obj instanceof MediaPrintableArea)) return false; MediaPrintableArea tmp = (MediaPrintableArea) obj; return (x == tmp.getX(1) && y == tmp.getY(1) && width == tmp.getWidth(1) && height == tmp.getHeight(1)); } |
return height / ((float)units); | return h / ((float)units); | public float getHeight(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return height / ((float)units); } |
return width / ((float)units); | return w / ((float)units); | public float getWidth(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return width / ((float)units); } |
return x ^ y + width ^ height; | return x ^ y + w ^ h; | public int hashCode() { return x ^ y + width ^ height; } |
public InvalidKeyException(String msg) | public InvalidKeyException() | public InvalidKeyException(String msg) { super(msg); } |
super(msg); | public InvalidKeyException(String msg) { super(msg); } | |
if (model.isArmed() && model.isPressed()) | if ((model.isArmed() && model.isPressed()) || (comboBox.isFocusOwner() && !comboBox.isPopupVisible())) | public void paintComponent(Graphics g) { super.paintComponent(g); Insets insets = this.getInsets(); int w = getWidth() - (insets.left + insets.right); int h = getHeight() - (insets.top + insets.bottom); if (h > 0 && w > 0) { int x1 = insets.left; int y1 = insets.top; int x2 =... |
public synchronized void addComponentListener(ComponentListener l) | public synchronized void addComponentListener(ComponentListener listener) | public synchronized void addComponentListener(ComponentListener l) { componentListener = AWTEventMulticaster.add(componentListener, l); if (componentListener != null) enableEvents(AWTEvent.COMPONENT_EVENT_MASK); } |
componentListener = AWTEventMulticaster.add(componentListener, l); | componentListener = AWTEventMulticaster.add(componentListener, listener); | public synchronized void addComponentListener(ComponentListener l) { componentListener = AWTEventMulticaster.add(componentListener, l); if (componentListener != null) enableEvents(AWTEvent.COMPONENT_EVENT_MASK); } |
public synchronized void addFocusListener(FocusListener l) | public synchronized void addFocusListener(FocusListener listener) | public synchronized void addFocusListener(FocusListener l) { focusListener = AWTEventMulticaster.add(focusListener, l); if (focusListener != null) enableEvents(AWTEvent.FOCUS_EVENT_MASK); } |
focusListener = AWTEventMulticaster.add(focusListener, l); | focusListener = AWTEventMulticaster.add(focusListener, listener); | public synchronized void addFocusListener(FocusListener l) { focusListener = AWTEventMulticaster.add(focusListener, l); if (focusListener != null) enableEvents(AWTEvent.FOCUS_EVENT_MASK); } |
addHierarchyBoundsListener(HierarchyBoundsListener l) | addHierarchyBoundsListener(HierarchyBoundsListener listener) | addHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.add(hierarchyBoundsListener, l); if (hierarchyBoundsListener != null) enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); } |
AWTEventMulticaster.add(hierarchyBoundsListener, l); | AWTEventMulticaster.add(hierarchyBoundsListener, listener); | addHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.add(hierarchyBoundsListener, l); if (hierarchyBoundsListener != null) enableEvents(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); } |
public synchronized void addHierarchyListener(HierarchyListener l) | public synchronized void addHierarchyListener(HierarchyListener listener) | public synchronized void addHierarchyListener(HierarchyListener l) { hierarchyListener = AWTEventMulticaster.add(hierarchyListener, l); if (hierarchyListener != null) enableEvents(AWTEvent.HIERARCHY_EVENT_MASK); } |
hierarchyListener = AWTEventMulticaster.add(hierarchyListener, l); | hierarchyListener = AWTEventMulticaster.add(hierarchyListener, listener); | public synchronized void addHierarchyListener(HierarchyListener l) { hierarchyListener = AWTEventMulticaster.add(hierarchyListener, l); if (hierarchyListener != null) enableEvents(AWTEvent.HIERARCHY_EVENT_MASK); } |
public synchronized void addInputMethodListener(InputMethodListener l) | public synchronized void addInputMethodListener(InputMethodListener listener) | public synchronized void addInputMethodListener(InputMethodListener l) { inputMethodListener = AWTEventMulticaster.add(inputMethodListener, l); if (inputMethodListener != null) enableEvents(AWTEvent.INPUT_METHOD_EVENT_MASK); } |
inputMethodListener = AWTEventMulticaster.add(inputMethodListener, l); | inputMethodListener = AWTEventMulticaster.add(inputMethodListener, listener); | public synchronized void addInputMethodListener(InputMethodListener l) { inputMethodListener = AWTEventMulticaster.add(inputMethodListener, l); if (inputMethodListener != null) enableEvents(AWTEvent.INPUT_METHOD_EVENT_MASK); } |
public synchronized void addKeyListener(KeyListener l) | public synchronized void addKeyListener(KeyListener listener) | public synchronized void addKeyListener(KeyListener l) { keyListener = AWTEventMulticaster.add(keyListener, l); if (keyListener != null) enableEvents(AWTEvent.KEY_EVENT_MASK); } |
keyListener = AWTEventMulticaster.add(keyListener, l); | keyListener = AWTEventMulticaster.add(keyListener, listener); | public synchronized void addKeyListener(KeyListener l) { keyListener = AWTEventMulticaster.add(keyListener, l); if (keyListener != null) enableEvents(AWTEvent.KEY_EVENT_MASK); } |
public synchronized void addMouseListener(MouseListener l) | public synchronized void addMouseListener(MouseListener listener) | public synchronized void addMouseListener(MouseListener l) { mouseListener = AWTEventMulticaster.add(mouseListener, l); if (mouseListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); } |
mouseListener = AWTEventMulticaster.add(mouseListener, l); | mouseListener = AWTEventMulticaster.add(mouseListener, listener); | public synchronized void addMouseListener(MouseListener l) { mouseListener = AWTEventMulticaster.add(mouseListener, l); if (mouseListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); } |
public synchronized void addMouseMotionListener(MouseMotionListener l) | public synchronized void addMouseMotionListener(MouseMotionListener listener) | public synchronized void addMouseMotionListener(MouseMotionListener l) { mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, l); if (mouseMotionListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); } |
mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, l); | mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, listener); | public synchronized void addMouseMotionListener(MouseMotionListener l) { mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, l); if (mouseMotionListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); } |
public synchronized void addMouseWheelListener(MouseWheelListener l) | public synchronized void addMouseWheelListener(MouseWheelListener listener) | public synchronized void addMouseWheelListener(MouseWheelListener l) { mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, l); if (mouseWheelListener != null) enableEvents(AWTEvent.MOUSE_WHEEL_EVENT_MASK); } |
mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, l); | mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, listener); | public synchronized void addMouseWheelListener(MouseWheelListener l) { mouseWheelListener = AWTEventMulticaster.add(mouseWheelListener, l); if (mouseWheelListener != null) enableEvents(AWTEvent.MOUSE_WHEEL_EVENT_MASK); } |
public synchronized void removeComponentListener(ComponentListener l) | public synchronized void removeComponentListener(ComponentListener listener) | public synchronized void removeComponentListener(ComponentListener l) { componentListener = AWTEventMulticaster.remove(componentListener, l); } |
componentListener = AWTEventMulticaster.remove(componentListener, l); | componentListener = AWTEventMulticaster.remove(componentListener, listener); | public synchronized void removeComponentListener(ComponentListener l) { componentListener = AWTEventMulticaster.remove(componentListener, l); } |
public synchronized void removeFocusListener(FocusListener l) | public synchronized void removeFocusListener(FocusListener listener) | public synchronized void removeFocusListener(FocusListener l) { focusListener = AWTEventMulticaster.remove(focusListener, l); } |
focusListener = AWTEventMulticaster.remove(focusListener, l); | focusListener = AWTEventMulticaster.remove(focusListener, listener); | public synchronized void removeFocusListener(FocusListener l) { focusListener = AWTEventMulticaster.remove(focusListener, l); } |
removeHierarchyBoundsListener(HierarchyBoundsListener l) | removeHierarchyBoundsListener(HierarchyBoundsListener listener) | removeHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.remove(hierarchyBoundsListener, l); } |
AWTEventMulticaster.remove(hierarchyBoundsListener, l); | AWTEventMulticaster.remove(hierarchyBoundsListener, listener); | removeHierarchyBoundsListener(HierarchyBoundsListener l) { hierarchyBoundsListener = AWTEventMulticaster.remove(hierarchyBoundsListener, l); } |
public synchronized void removeHierarchyListener(HierarchyListener l) | public synchronized void removeHierarchyListener(HierarchyListener listener) | public synchronized void removeHierarchyListener(HierarchyListener l) { hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, l); } |
hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, l); | hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, listener); | public synchronized void removeHierarchyListener(HierarchyListener l) { hierarchyListener = AWTEventMulticaster.remove(hierarchyListener, l); } |
public synchronized void removeInputMethodListener(InputMethodListener l) | public synchronized void removeInputMethodListener(InputMethodListener listener) | public synchronized void removeInputMethodListener(InputMethodListener l) { inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, l); } |
inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, l); | inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, listener); | public synchronized void removeInputMethodListener(InputMethodListener l) { inputMethodListener = AWTEventMulticaster.remove(inputMethodListener, l); } |
public synchronized void removeKeyListener(KeyListener l) | public synchronized void removeKeyListener(KeyListener listener) | public synchronized void removeKeyListener(KeyListener l) { keyListener = AWTEventMulticaster.remove(keyListener, l); } |
keyListener = AWTEventMulticaster.remove(keyListener, l); | keyListener = AWTEventMulticaster.remove(keyListener, listener); | public synchronized void removeKeyListener(KeyListener l) { keyListener = AWTEventMulticaster.remove(keyListener, l); } |
public synchronized void removeMouseListener(MouseListener l) | public synchronized void removeMouseListener(MouseListener listener) | public synchronized void removeMouseListener(MouseListener l) { mouseListener = AWTEventMulticaster.remove(mouseListener, l); } |
mouseListener = AWTEventMulticaster.remove(mouseListener, l); | mouseListener = AWTEventMulticaster.remove(mouseListener, listener); | public synchronized void removeMouseListener(MouseListener l) { mouseListener = AWTEventMulticaster.remove(mouseListener, l); } |
public synchronized void removeMouseMotionListener(MouseMotionListener l) | public synchronized void removeMouseMotionListener(MouseMotionListener listener) | public synchronized void removeMouseMotionListener(MouseMotionListener l) { mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, l); } |
mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, l); | mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, listener); | public synchronized void removeMouseMotionListener(MouseMotionListener l) { mouseMotionListener = AWTEventMulticaster.remove(mouseMotionListener, l); } |
public synchronized void removeMouseWheelListener(MouseWheelListener l) | public synchronized void removeMouseWheelListener(MouseWheelListener listener) | public synchronized void removeMouseWheelListener(MouseWheelListener l) { mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, l); } |
mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, l); | mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, listener); | public synchronized void removeMouseWheelListener(MouseWheelListener l) { mouseWheelListener = AWTEventMulticaster.remove(mouseWheelListener, l); } |
if (isLightweight()) | if (isLightweight() && isShowing ()) | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... |
if (shouldRepaintParent) | if (shouldRepaintParent && parent != null) | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... |
if (oldx != x || oldy != y) | if (isShowing () && (oldx != x || oldy != y)) | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... |
if (oldwidth != width || oldheight != height) | if (isShowing () && (oldwidth != width || oldheight != height)) | public void reshape(int x, int y, int width, int height) { int oldx = this.x; int oldy = this.y; int oldwidth = this.width; int oldheight = this.height; if (this.x == x && this.y == y && this.width == width && this.height == height) return; invalidate (); this.x = x; this.y = y; ... |
public void setFont(Font f) | public void setFont(Font newFont) | public void setFont(Font f) { firePropertyChange("font", font, f); if (peer != null) peer.setFont(f); invalidate(); font = f; } |
firePropertyChange("font", font, f); | if (font == newFont) return; Font oldFont = font; font = newFont; | public void setFont(Font f) { firePropertyChange("font", font, f); if (peer != null) peer.setFont(f); invalidate(); font = f; } |
peer.setFont(f); | peer.setFont(font); firePropertyChange("font", oldFont, newFont); | public void setFont(Font f) { firePropertyChange("font", font, f); if (peer != null) peer.setFont(f); invalidate(); font = f; } |
font = f; | public void setFont(Font f) { firePropertyChange("font", font, f); if (peer != null) peer.setFont(f); invalidate(); font = f; } | |
public void setLocale(Locale l) | public void setLocale(Locale newLocale) | public void setLocale(Locale l) { firePropertyChange("locale", locale, l); locale = l; // New writing/layout direction or more/less room for localized labels. invalidate(); } |
firePropertyChange("locale", locale, l); locale = l; | if (locale == newLocale) return; Locale oldLocale = locale; locale = newLocale; firePropertyChange("locale", oldLocale, newLocale); | public void setLocale(Locale l) { firePropertyChange("locale", locale, l); locale = l; // New writing/layout direction or more/less room for localized labels. invalidate(); } |
Log.debug("in XMLDataIOStyle, setParentArray()"); | protected void setParentArray(Array parentArray) { Log.debug("in XMLDataIOStyle, setParentArray()"); this.parentArray = parentArray; } | |
public synchronized void send(IPv4Header ipHdr, TCPHeader hdr, byte[] data, int offset, int length) | public void send(IPv4Header ipHdr, TCPHeader hdr) | public synchronized void send(IPv4Header ipHdr, TCPHeader hdr, byte[] data, int offset, int length) throws SocketException { log.debug("outChannel.send(ipHdr,hdr,data," + offset + ", " + length + ")"); // Check for maximum datalength if (length > mss) { throw new IllegalArgumentException("dataLength must be <= ms... |
log.debug("outChannel.send(ipHdr,hdr,data," + offset + ", " + length + ")"); if (length > mss) { throw new IllegalArgumentException("dataLength must be <= mss"); | if (hdr.getDataLength() != 0) { throw new IllegalArgumentException("dataLength must be 0"); | public synchronized void send(IPv4Header ipHdr, TCPHeader hdr, byte[] data, int offset, int length) throws SocketException { log.debug("outChannel.send(ipHdr,hdr,data," + offset + ", " + length + ")"); // Check for maximum datalength if (length > mss) { throw new IllegalArgumentException("dataLength must be <= ms... |
while ((length > dataBuffer.getFreeSize()) && !controlBlock.isReset()) { try { wait(); } catch (InterruptedException ex) { } } if (controlBlock.isReset()) { throw new SocketException("Connection reset"); } final int bufOfs = dataBuffer.add(data, offset, length); hdr.setDataLength(length); | public synchronized void send(IPv4Header ipHdr, TCPHeader hdr, byte[] data, int offset, int length) throws SocketException { log.debug("outChannel.send(ipHdr,hdr,data," + offset + ", " + length + ")"); // Check for maximum datalength if (length > mss) { throw new IllegalArgumentException("dataLength must be <= ms... | |
sendHelper(ipHdr, hdr, bufOfs); | sendHelper(ipHdr, hdr, 0); | public synchronized void send(IPv4Header ipHdr, TCPHeader hdr, byte[] data, int offset, int length) throws SocketException { log.debug("outChannel.send(ipHdr,hdr,data," + offset + ", " + length + ")"); // Check for maximum datalength if (length > mss) { throw new IllegalArgumentException("dataLength must be <= ms... |
public abstract void add(String item, int index); | void add (String item, int index); | public abstract void add(String item, int index); |
public abstract void remove(int index); | void remove (int index); | public abstract void remove(int index); |
public abstract void select(int index); | void select (int index); | public abstract void select(int index); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.