rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
else return false; | public static boolean isLocal(Stub stub) throws RemoteException { if(delegate != null) return delegate.isLocal(stub); else return false; } | |
if(delegate != null) | public static RemoteException mapSystemException(SystemException ex) { if(delegate != null) return delegate.mapSystemException(ex); else return null; } | |
else return null; | public static RemoteException mapSystemException(SystemException ex) { if(delegate != null) return delegate.mapSystemException(ex); else return null; } | |
public static Object readAny(InputStream in) | public static java.lang.Object readAny(InputStream input) | public static Object readAny(InputStream in) { if(delegate != null) return delegate.readAny(in); else return null; } |
if(delegate != null) return delegate.readAny(in); else return null; | return delegate.readAny(input); | public static Object readAny(InputStream in) { if(delegate != null) return delegate.readAny(in); else return null; } |
if(delegate != null) | public static void registerTarget(Tie tie, Remote target) { if(delegate != null) delegate.registerTarget(tie, target); } | |
if(delegate != null) | public static void unexportObject(Remote target) { if(delegate != null) delegate.unexportObject(target); } | |
public static RemoteException wrapException(Throwable orig) | public static RemoteException wrapException(Throwable exception) | public static RemoteException wrapException(Throwable orig) { if(delegate != null) return delegate.wrapException(orig); else return null; } |
if(delegate != null) return delegate.wrapException(orig); else return null; | return delegate.wrapException(exception); | public static RemoteException wrapException(Throwable orig) { if(delegate != null) return delegate.wrapException(orig); else return null; } |
public static void writeAbstractObject(OutputStream out, Object obj) | public static void writeAbstractObject(OutputStream output, java.lang.Object object) | public static void writeAbstractObject(OutputStream out, Object obj) { if(delegate != null) delegate.writeAbstractObject(out, obj); } |
if(delegate != null) delegate.writeAbstractObject(out, obj); | delegate.writeAbstractObject(output, object); | public static void writeAbstractObject(OutputStream out, Object obj) { if(delegate != null) delegate.writeAbstractObject(out, obj); } |
public static void writeAny(OutputStream out, Object obj) | public static void writeAny(OutputStream output, java.lang.Object object) | public static void writeAny(OutputStream out, Object obj) { if(delegate != null) delegate.writeAny(out, obj); } |
if(delegate != null) delegate.writeAny(out, obj); | delegate.writeAny(output, object); | public static void writeAny(OutputStream out, Object obj) { if(delegate != null) delegate.writeAny(out, obj); } |
public static void writeRemoteObject(OutputStream out, Object obj) | public static void writeRemoteObject(OutputStream output, java.lang.Object object) | public static void writeRemoteObject(OutputStream out, Object obj) { if(delegate != null) delegate.writeRemoteObject(out, obj); } |
if(delegate != null) delegate.writeRemoteObject(out, obj); | delegate.writeRemoteObject(output, object); | public static void writeRemoteObject(OutputStream out, Object obj) { if(delegate != null) delegate.writeRemoteObject(out, obj); } |
Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException; | Object copyObject(Object obj, ORB orb) throws RemoteException; | Object copyObject(Object obj, javax.rmi.ORB orb) throws RemoteException; |
Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException; | Object[] copyObjects(Object[] obj, ORB orb) throws RemoteException; | Object[] copyObjects(Object obj[], javax.rmi.ORB orb) throws RemoteException; |
Object readAny(InputStream in); | Object readAny(InputStream input); | Object readAny(InputStream in); |
void writeAbstractObject(OutputStream out, Object obj); | void writeAbstractObject(OutputStream output, Object object); | void writeAbstractObject(OutputStream out, Object obj); |
void writeAny(OutputStream out, Object obj); | void writeAny(OutputStream output, Object object); | void writeAny(OutputStream out, Object obj); |
void writeRemoteObject(OutputStream out, Object obj); | void writeRemoteObject(OutputStream output, Object obj); | void writeRemoteObject(OutputStream out, Object obj); |
public void transform(AffineTransform Tx) { transform.concatenate(Tx); | public void transform(AffineTransform tx) { transform.concatenate(tx); Rectangle2D r = clip.getBounds2D(); double[] coords = new double[] { r.getX(), r.getY(), r.getX() + r.getWidth(), r.getY() + r.getHeight() }; try { tx.createInverse().transform(coords, 0, coords, 0, 2); r.setRect(coords[0], coords[1], coords[2] - c... | public void transform(AffineTransform Tx) { transform.concatenate(Tx); } |
protected void decrLayer(Integer layer) | private void decrLayer(Integer layer) | protected void decrLayer(Integer layer) { int sz = 0; if (layers.containsKey (layer)) sz = ((Integer)(layers.get (layer))).intValue () - 1; layers.put (layer, new Integer(sz)); } |
protected void incrLayer(Integer layer) | private void incrLayer(Integer layer) | protected void incrLayer(Integer layer) { int sz = 1; if (layers.containsKey (layer)) sz += ((Integer)(layers.get (layer))).intValue (); layers.put (layer, new Integer(sz)); } |
protected int[] layerToRange (Integer layer) | private int[] layerToRange (Integer layer) | protected int[] layerToRange (Integer layer) { int[] ret = new int[2]; ret[1] = getComponents ().length; Iterator i = layers.entrySet ().iterator (); while (i.hasNext()) { Map.Entry pair = (Map.Entry) i.next(); Integer layerNum = (Integer) pair.getKey (); Integer layerSz = (Integ... |
Dimension viewportSize = viewport.getMinimumSize(); int width = viewportSize.width; int height = viewportSize.height; if (hsb != null && hsb.isVisible()) height += hsb.getMinimumSize().height; if (vsb != null && vsb.isVisible()) width += vsb.getMinimumSize().width; if (rowHead != null && rowHead.isVisible()) width += r... | public Dimension minimumLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getMinimumSize(); int width = viewportSize.width; int ... | |
return new Dimension(width + i.left + i.right, height + i.top + i.bottom); | Dimension viewportMinSize = sc.getViewport().getMinimumSize(); int width = i.left + i.right + viewportMinSize.width; if (sc.getVerticalScrollBarPolicy() != JScrollPane.VERTICAL_SCROLLBAR_NEVER) width += sc.getVerticalScrollBar().getMinimumSize().width; int height = i.top + i.bottom + viewportMinSize.height; if (sc.ge... | public Dimension minimumLayoutSize(Container parent) { // Sun's implementation simply throws a ClassCastException if // parent is no JScrollPane, so do we. JScrollPane sc = (JScrollPane) parent; Dimension viewportSize = viewport.getMinimumSize(); int width = viewportSize.width; int ... |
return !screen.isKeyboardLocked() && (screen.isWithinScreenArea(b.getStartPoint().x,b.getStartPoint().y)); | return screen.isWithinScreenArea(b.getStartPoint().x,b.getStartPoint().y); | public boolean canDrawRubberBand(RubberBand b) { // before we get the row col we first have to translate the x,y point // back to screen coordinates because we are translating the starting // point to the 5250 screen coordinates return !screen.isKeyboardLocked() && (screen.isWithinScreenArea(... |
screen.getCurrentCol()-1, | screen.getCurrentCol() + 1, | public void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol()-1, ... |
screen.getPointFromRowCol(screen.getCurrentRow() - 1, | screen.getPointFromRowCol(screen.getCurrentRow() + 1, | public void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol()-1, ... |
rubberband.getCanvas().translateEnd(p); | public void doKeyBoundArea(KeyEvent ke,String last) { Point p = new Point(); if (!rubberband.isAreaSelected()) { if (last.equals("[markleft]")) screen.getPointFromRowCol(screen.getCurrentRow() - 1, screen.getCurrentCol()-1, ... | |
final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); | final int pos = screen.getPosFromView(me.getX(),me.getY()); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { acti... |
screen.sendKeys(MNEMONIC_PASTE); | screen.copyMe(); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { acti... |
rubberband.getBoundingArea(workR); int ePos = screen.getRowColFromPoint(workR.width + 1 , workR.height + 1 ); | screen.getBoundingArea(workR); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { acti... |
+ " " + screen.getCol(ePos)); | + " " + workR.width); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { acti... |
+ " " + screen.getRow(ePos)); | + " " + workR.height); | private void doPopup (MouseEvent me) { JMenuItem menuItem; Action action; popup = new JPopupMenu(); final Gui5250 g = this; JMenuItem mi; final int pos = screen.getRowColFromPoint(me.getX(),me.getY()); if (!rubberband.isAreaSelected() && screen.isInField(pos,false) ) { acti... |
screen.sendKeys(MNEMONIC_PASTE); | screen.copyMe(); | public void actionPerformed(ActionEvent e) { screen.sendKeys(MNEMONIC_PASTE); getFocusForMe(); } |
} | public org.omg.CORBA.portable.InputStream create_input_stream() { cdrBufOutput out = new cdrBufOutput(); out.setOrb(orb); write_value(out); cdrBufInput in = new cdrBufInput(out.buffer.toByteArray()); in.setOrb(orb); return in; } | |
throw new NO_IMPLEMENT("Not implemented for " + typeNamer.nameIt(a_type) ); | { cdrBufOutput buffer = new cdrBufOutput(); buffer.setOrb(orb); has = new universalHolder(buffer); } | public void read_value(org.omg.CORBA.portable.InputStream input, TypeCode a_type ) throws MARSHAL { try { int kind = a_type.kind().value(); // Fixed needs special handling. if (kind == TCKind._tk_fixed) { ... |
System.out.println(" socks set "); | public final void setProxy(String proxyHost, String proxyPort) { this.proxyHost=proxyHost; this.proxyPort = proxyPort; proxySet = true; Properties systemProperties = System.getProperties(); systemProperties.put("socksProxySet","true"); systemProperties.put("socksProxyHost",proxyHost); ... | |
if (f == null) return; | protected void closeSession(Session targetSession) { Gui5250Frame f = getParentView(targetSession); int tabs = f.getSessionViewCount(); Sessions sessions = manager.getSessions(); Session session = null; if (tabs > 1) { if ((sessions.item(targetSession)) != null) { f.remove... | |
if (root == null) { throw new IllegalArgumentException("null root"); } | public void setRoot(TreeNode root) { // Sanity Check if (root == null) { throw new IllegalArgumentException("null root"); } // Set new root this.root = root; } | |
if (a >= sel.length() || a < 0) return false; | public boolean isSelectedIndex(int a) { return sel.get(a); } | |
BitSet oldRange = sel.get(lo, hi+1); | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; if (setLeadCalledFromAdd == false) oldSel = sel.clone(); leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.m... | |
BitSet newRange = sel.get(lo, hi+1); newRange.xor(oldRange); | public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; if (setLeadCalledFromAdd == false) oldSel = sel.clone(); leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.m... | |
if (g instanceof Graphics2D) { | protected Graphics getComponentGraphics(Graphics g) { if (g instanceof Graphics2D) { g.setFont (this.getFont()); g.setColor (this.getForeground()); return g; } else { Graphics g2 = g.create (); g2.setFont (this.getFont()); g2.setColor (this.getForegroun... | |
else { Graphics g2 = g.create (); g2.setFont (this.getFont()); g2.setColor (this.getForeground()); return g2; } } | protected Graphics getComponentGraphics(Graphics g) { if (g instanceof Graphics2D) { g.setFont (this.getFont()); g.setColor (this.getForeground()); return g; } else { Graphics g2 = g.create (); g2.setFont (this.getFont()); g2.setColor (this.getForegroun... | |
ui.update(g, this); | { Graphics g2 = g; if (!(g instanceof Graphics2D)) g2 = g.create(); ui.update(getComponentGraphics(g2), this); if (!(g instanceof Graphics2D)) g2.dispose(); } | protected void paintComponent(Graphics g) { if (ui != null) ui.update(g, this); } |
revalidate(); repaint(); | public void setBackground(Color bg) { super.setBackground(bg); revalidate(); repaint(); } | |
revalidate(); repaint(); | public void setBorder(Border newBorder) { Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder); revalidate(); repaint(); } | |
firePropertyChange("enabeld", oldEnabled, enable); revalidate(); repaint(); | firePropertyChange("enabled", oldEnabled, enable); | public void setEnabled(boolean enable) { boolean oldEnabled = isEnabled(); super.setEnabled(enable); firePropertyChange("enabeld", oldEnabled, enable); revalidate(); repaint(); } |
revalidate(); repaint(); | public void setFont(Font f) { super.setFont(f); revalidate(); repaint(); } | |
revalidate(); repaint(); | public void setForeground(Color fg) { super.setForeground(fg); revalidate(); repaint(); } | |
revalidate(); repaint(); | public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); revalidate(); repaint(); } | |
revalidate(); repaint(); | public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); revalidate(); repaint(); } | |
revalidate(); repaint(); | protected void setUI(ComponentUI newUI) { if (ui != null) ui.uninstallUI(this); ComponentUI oldUI = ui; ui = newUI; if (ui != null) ui.installUI(this); firePropertyChange("UI", oldUI, newUI); revalidate(); repaint(); } | |
revalidate(); repaint(); | public void setVisible(boolean v) { super.setVisible(v); revalidate(); repaint(); } | |
int_pixel_buffer[i] = currentModel.getRGB (pixels[p]); | int_pixel_buffer[i] = currentModel.getRGB (pixels[p] & 0xFF); | public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; for(int yp = y; yp < (y + h); yp++) { for(int xp = ... |
currentField.getAdjustment() > 0 && currentModified && !currentField.isCanSend()) | (currentField.getAdjustment() > 0 || currentField.isSignedNumeric()) && currentModified && isInField() && !currentField.isCanSend()) | public boolean isCanSendAid() { if (currentField != null && currentField.getAdjustment() > 0 && currentModified && !currentField.isCanSend()) return false; else return true; } |
parseExtra (); | public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 21) & 0xf) - 1; int year = ((dostime >> 25) & 0x7f) + 1980; /* since 1900 */ try ... | |
try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; int len = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) << 8; if (sig == 0x5455) { int flags = extra[pos]; if ((flags & 1) != 0) { long time = ((extra[pos+1] & 0xff) | (extra[pos+2] & 0xff) << 8 | (extra[pos+3... | } | public void setExtra(byte[] extra) { if (extra == null) { this.extra = null; return; } if (extra.length > 0xffff) throw new IllegalArgumentException(); this.extra = extra; try { int pos = 0; while (pos < extra.length) { int sig = (extra[pos++] & 0xff) | (extra[pos++] & 0xff) ... |
public boolean loadAllInstruments(Soundbank soundbank) throws IllegalArgumentException; | public boolean loadAllInstruments(Soundbank soundbank); | public boolean loadAllInstruments(Soundbank soundbank) throws IllegalArgumentException; |
public boolean loadInstrument(Instrument instrument) throws IllegalArgumentException; | public boolean loadInstrument(Instrument instrument); | public boolean loadInstrument(Instrument instrument) throws IllegalArgumentException; |
public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException; | public boolean loadInstruments(Soundbank soundbank, Patch[] patchList); | public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException; |
public boolean remapInstrument(Instrument from, Instrument to) throws IllegalArgumentException; | public boolean remapInstrument(Instrument from, Instrument to); | public boolean remapInstrument(Instrument from, Instrument to) throws IllegalArgumentException; |
public void unloadAllInstruments(Soundbank soundbank) throws IllegalArgumentException; | public void unloadAllInstruments(Soundbank soundbank); | public void unloadAllInstruments(Soundbank soundbank) throws IllegalArgumentException; |
public void unloadInstrument(Instrument instrument) throws IllegalArgumentException; | public void unloadInstrument(Instrument instrument); | public void unloadInstrument(Instrument instrument) throws IllegalArgumentException; |
public void unloadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException; | public void unloadInstruments(Soundbank soundbank, Patch[] patchList); | public void unloadInstruments(Soundbank soundbank, Patch[] patchList) throws IllegalArgumentException; |
data=getBlock(superblock.getFirstDataBlock()+1); | public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S... | |
/* | public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S... | |
*/ | public Ext2FileSystem(Device device, boolean readOnly) throws FileSystemException { super(device, readOnly); byte data[]; blockCache = new BlockCache(50,(float)0.75); inodeCache = new INodeCache(50,(float)0.75); groupDescriptorLock = new Object(); superblockLock = new Object(); try { data = new byte[S... | |
timedRead(nr, data); | getApi().read( nr*blockSize, data, 0, blockSize ); | public byte[] getBlock(long nr) throws IOException{ //log.debug("blockCache size: "+blockCache.size()); int blockSize = superblock.getBlockSize(); Block result; Integer key=new Integer((int)(nr)); synchronized(blockCache) { //check if the block has already been retrieved if(blockCache.containsKey(key)) ... |
public long getBlockSize() { | public int getBlockSize() { | public long getBlockSize() { return superblock.getBlockSize(); } |
protected void modifyUsedDirsCount(int group, int diff) throws IOException { | protected void modifyUsedDirsCount(int group, int diff) { | protected void modifyUsedDirsCount(int group, int diff) throws IOException { GroupDescriptor gdesc = groupDescriptors[group]; synchronized(gdesc) { gdesc.setUsedDirsCount( gdesc.getUsedDirsCount()+diff ); } } |
timedWrite(nr, data); | getApi().write(nr*blockSize, data, 0, blockSize); | public void writeBlock(long nr, byte[] data, boolean forceWrite) throws IOException { if(isReadOnly()) throw new ReadOnlyFileSystemException("Filesystem is mounted read-only!"); Block block; Integer key=new Integer((int)nr); //check if the block is in the cache synchronized(blockCache) { if(blockCache.c... |
bad.minor = Minor.Any; | public static NamingContext extract(Any a) { try { return ((NamingContextHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("Naming context expected"); bad.initCause(ex); throw bad; } } | |
public KeyException(String msg) | public KeyException() | public KeyException(String msg) { super(msg); } |
super(msg); | public KeyException(String msg) { super(msg); } | |
public Button() { | Button() { | public Button() { this(null); } |
public synchronized void addActionListener(ActionListener listener) { | addActionListener(ActionListener listener) { | public synchronized void addActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.add(action_listeners, listener); } |
public void addNotify() { | addNotify() { | public void addNotify() { if (peer == null) peer = getToolkit().createButton(this); super.addNotify(); } |
void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) | dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) | void dispatchEventImpl(AWTEvent e) { if (e.id <= ActionEvent.ACTION_LAST && e.id >= ActionEvent.ACTION_FIRST && (action_listeners != null || (eventMask & AWTEvent.ACTION_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); } |
public String getActionCommand() { return (actionCommand); } | getActionCommand() { return(actionCommand); } | public String getActionCommand() { return (actionCommand); } |
public String getLabel() { return (label); } | getLabel() { return(label); } | public String getLabel() { return (label); } |
protected String paramString() { return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString()); } | paramString() { return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString()); } | protected String paramString() { return ("label=" + getLabel() + ",actionCommand=" + getActionCommand() + "," + super.paramString()); } |
protected void processActionEvent(ActionEvent event) { | processActionEvent(ActionEvent event) { | protected void processActionEvent(ActionEvent event) { if (action_listeners != null) action_listeners.actionPerformed(event); } |
protected void processEvent(AWTEvent event) { | processEvent(AWTEvent event) { | protected void processEvent(AWTEvent event) { if (event instanceof ActionEvent) processActionEvent((ActionEvent) event); else super.processEvent(event); } |
public synchronized void removeActionListener(ActionListener listener) { | removeActionListener(ActionListener listener) { | public synchronized void removeActionListener(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } |
public void setActionCommand(String actionCommand) { | setActionCommand(String actionCommand) { | public void setActionCommand(String actionCommand) { this.actionCommand = actionCommand == null ? label : actionCommand; } |
public synchronized void setLabel(String label) { | setLabel(String label) { | public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } } |
if (peer != null) { | actionCommand = label; if (peer != null) { | public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } } |
bp.setLabel(label); } | bp.setLabel (label); | public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } } |
} | public synchronized void setLabel(String label) { this.label = label; if (peer != null) { ButtonPeer bp = (ButtonPeer) peer; bp.setLabel(label); } } | |
return getDataCube().getDimension(); | return getAxes().size(); | public int getDimension() { return getDataCube().getDimension(); } |
if (isRemoveSuccess) { getDataCube().decrementDimension(axisObj); | if (isRemoveSuccess) { getDataCube().reset(); | public boolean removeAxis (AxisInterface axisObj) { boolean isRemoveSuccess = removeFromList(axisObj, getAxes(), AXISLIST_XML_ATTRIBUTE_NAME); if (isRemoveSuccess) { //remove successful getDataCube().decrementDimension(axisObj); //decrease the dimension by 1 updateChildLocators(ax... |
for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); | int lastindex = oldAxisList.size()-1; for (int i = lastindex; i >= 0; i--) { removeAxis(i); } | public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i... |
addAxis((Axis) iter.next()); | addAxis((AxisInterface) iter.next()); | public void setAxisList(List axisList) { // remove the existing axes List oldAxisList = getAxes(); for (int i=0;i<oldAxisList.size();i++) removeAxis(i++); //add new axes if (axisList != null && axisList.size() > 0) { Iterator iter = axisList.iterator(); while (iter.hasNext()) addAxis((Axis) i... |
getBorder().paintBorder(this, graphics, 0, 0, | Border border = getBorder(); if (paintBorder && border != null) border.paintBorder(this, graphics, 0, 0, | protected void paintBorder(Graphics graphics) { getBorder().paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); } |
log.debug("Source : " +((EthernetHeader)buf.getLinkLayerHeader()).getSource().toString()); log.debug("Destination : " + ((EthernetHeader)buf.getLinkLayerHeader()).getDestination().toString()); | public void transmit(SocketBuffer buf, HardwareAddress destination, long timeout) throws InterruptedException, TimeoutException { log.debug(flags.getName() + " : Init transmit with TIMEOUT=" + timeout); // Set the source address hwAddress.writeTo(buf, 6); log.debug("Source : " +((EthernetHeader)buf.getLinkL... | |
setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); | { setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); super.registerKeyboardAction(action, accelerator, JComponent.WHEN_IN_FOCUSED_WINDOW); } | protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); if (! (this instanceof JMenu) && action != null) setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.