rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; | if (listener == null) return; | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... |
if (listenerList.length == 0) { return; } list = new Object[listenerList.length - 2]; | if (!t.isInstance(listener)) throw new IllegalArgumentException(); | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... |
pointer = 0; found = false; for (index = 0; index < listenerList.length - 2; index += 2) { checkClass = (Class) listenerList[index]; checkListener = (EventListener) listenerList[index + 1]; if (checkClass.equals(t) == false || checkListener.equals(listener) == false) { list[pointer] = checkClass; list[pointer + 1] = ch... | oldList = listenerList; oldLength = oldList.length; for (int i = 0; i < oldLength; i += 2) if (oldList[i] == t && oldList[i + 1] == listener) { if (oldLength == 2) newList = NO_LISTENERS; else { newList = new Object[oldLength - 2]; if (i > 0) System.arraycopy(oldList, 0, newList, 0, i); if (i < oldLength - 2) System.ar... | public void remove(Class t, EventListener listener) { // Variables Object[] list; int index; Class checkClass; EventListener checkListener; int pointer; boolean found; // Create New list in anticipation that listener is not present if (listenerList.length == 0) { return; } // if list = new Obje... |
if (changeSupport != null) changeSupport.firePropertyChange(propertyName, new Boolean(oldValue), new Boolean(newValue)); | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { //Reports a bound property change. } | |
{ LabelUI b = (LabelUI)UIManager.getUI(this); setUI(b); } | { setUI((LabelUI) UIManager.getUI(this)); } | public void updateUI() { LabelUI b = (LabelUI)UIManager.getUI(this); setUI(b); } |
CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node)); Font font = FontUtil.getFont(c, style, node); | CalculatedStyle style = c.css.getStyle(node); Font font = FontUtil.getFont(c, style); | private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t... |
VerticalAlign.setupVerticalAlign(c, containing_block, line_to_save); | VerticalAlign.setupVerticalAlign(line_to_save); | private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l... |
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, int parent_width, InlineBlockBox pendingBlockBox) { | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, InlineBlockBox pendingBlockBox) { | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line, int parent_width, InlineBlockBox pendingBlockBox) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); // use the prev_align to calculate... |
public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); | public static void adjustTextAlignment(Context c, CalculatedStyle style, LineBox line_to_save, int width, int x, boolean last) { String text_align = style.getStringProperty(CSSName.TEXT_ALIGN); | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... |
if (TextAlignJustify.isJustified(c, containing_block)) { | if (TextAlignJustify.isJustified(style)) { | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... |
TextAlignJustify.justifyLine(c, line_to_save, containing_block, width); | TextAlignJustify.justifyLine(c, line_to_save, width); | public static void adjustTextAlignment(Context c, LineBox line_to_save, Element containing_block, int width, int x, boolean last) { String text_align = c.css.getStyle(containing_block).getStringProperty(CSSName.TEXT_ALIGN); if (text_align == null) { return; } if (text_align.eq... |
public static void setupVerticalAlign(LineBox box) { | public static void setupVerticalAlign(Context c, CalculatedStyle style, InlineBox box) { Content content = box.content; | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... |
int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline = (InlineBox) box.getChild(i); if (inline.floated) { continue; | Font parent_font = FontUtil.getFont(c, style); LineMetrics parent_metrics = null; if (!(content instanceof InlineBlockContent)) { if (!(content instanceof FloatedBlockContent) && !(content instanceof AbsoluteBlockContent)) { parent_metrics = parent_font.getLineMetrics(box.getSubstring(), ((Graphics2D) c.getGraphics()).... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... |
if (inline.vset) { if (inline.y - inline.height < top) { top = inline.y - inline.height; } if (inline.y + 0 > bot) { bot = inline.y + 0; } } else { if (inline.height > height) { height = inline.height; } } | } else { parent_metrics = parent_font.getLineMetrics("Test", ((Graphics2D) c.getGraphics()).getFontRenderContext()); | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... |
if (bot - top > height) { box.height = bot - top; box.baseline = box.height - bot; } else { box.height = height; box.baseline = box.height; | float parent_height = parent_metrics.getHeight(); String vertical_align = style.propertyByName("vertical-align").computedValue().asString(); if (!(content instanceof InlineBlockContent) && !(content instanceof AbsoluteBlockContent)) { box.height = FontUtil.lineHeight(c, box); | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... |
for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline = (InlineBox) box.getChild(i); if (inline.floated) { } else { if (!inline.vset) { inline.vset = true; if (inline.top_align) { inline.y = -box.baseline + inline.height; } if (inline.bottom_align) { inline.y = 0; } } } | if (vertical_align == null) { vertical_align = "baseline"; } box.baseline = 0; box.y = 0; box.vset = true; if (vertical_align.equals("baseline")) { Font font = FontUtil.getFont(c, box); box.y += FontUtil.getDescent(c, box, font); } if (vertical_align.equals("super")) { box.y = box.y + (int) (parent_metrics.getS... | public static void setupVerticalAlign(LineBox box) { // Uu.p("setting up vertical align for a line: " + box); // top and bottom are max dist from baseline int top = 0; int bot = 0; int height = 0; for (int i = 0; i < box.getChildCount(); i++) { InlineBox inline =... |
public void treeWillCollapse(TreeExpansionEvent event); | void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException; | public void treeWillCollapse(TreeExpansionEvent event); |
public void treeWillExpand(TreeExpansionEvent event); | void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException; | public void treeWillExpand(TreeExpansionEvent event); |
throw new JBossJMSException("Cannot create security metadata", e); | throw new MessagingJMSException("Cannot create security metadata", e); | public void setSecurityConfig(boolean isQueue, String destName, Element conf) throws JMSException { if (trace) { log.trace("adding security configuration for " + (isQueue ? "queue " : "topic ") + destName); } SecurityMetadata m = null; try { m = new SecurityMetadata(conf); } c... |
public SecurityMetadata(Element conf)throws Exception { configure(conf); | public SecurityMetadata() { addRole(DEFAULT_ROLE); | public SecurityMetadata(Element conf)throws Exception { configure(conf); } |
FPUHelper.fxch(os, stack.fpuStack, this); | final void loadTo(EmitterContext ec, Register reg) { assertCondition(reg != null, "Reg != null"); final AbstractX86Stream os = ec.getStream(); final X86RegisterPool pool = ec.getPool(); final VirtualStack stack = ec.getVStack(); assertCondition(!pool.isFree(reg), "reg not free"); switch (kind) { case Kind.REGIS... | |
if (!fpuStack.isTos(this)) { FPUHelper.fxch(os, fpuStack, fpuStack.getRegister(this)); } | FPUHelper.fxch(os, fpuStack, this); | final void push(EmitterContext ec) { final AbstractX86Stream os = ec.getStream(); final VirtualStack stack = ec.getVStack(); switch (getKind()) { case Kind.REGISTER: os.writePUSH(reg); break; case Kind.LOCAL: os.writePUSH(FP, offsetToFP); break; case Kind.CONSTANT: pushConstant(ec, os); break; case ... |
static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { if (fpuReg == Register.ST0) { throw new StackException("Cannot fxch ST0"); } os.writeFXCH(fpuReg); fpuStack.fxch(fpuReg); } | static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Item item) { if (!fpuStack.isTos(item)) { final Register fpuReg = fpuStack.getRegister(item); fxch(os, fpuStack, fpuReg); } } | static final void fxch(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { if (fpuReg == Register.ST0) { throw new StackException("Cannot fxch ST0"); } os.writeFXCH(fpuReg); fpuStack.fxch(fpuReg); } |
allocated.remove(register); | public void release(Object register) { registers.add(register); } | |
public ServerConnectionFactoryEndpoint(String id, ServerPeer serverPeer, | public ServerConnectionFactoryEndpoint(int id, ServerPeer serverPeer, | public ServerConnectionFactoryEndpoint(String id, ServerPeer serverPeer, String defaultClientID, JNDIBindings jndiBindings) { this.serverPeer = serverPeer; this.clientID = defaultClientID; this.id = id; this.jndiBindings = jndiBindings; } |
String connectionID = endpoint.getConnectionID(); | int connectionID = endpoint.getConnectionID(); | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... |
Dispatcher.singleton.registerTarget(connectionID, connAdvised); | JMSDispatcher.instance.registerTarget(Integer.valueOf(connectionID), connAdvised); | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... |
public String getID() | public int getID() | public String getID() { return id; } |
public ClientConnectionDelegate(String objectID, String serverLocatorURI, | public ClientConnectionDelegate(String objectID, | public ClientConnectionDelegate(String objectID, String serverLocatorURI, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; this.serverLocatorURI = serverLocatorURI; } |
this.serverLocatorURI = serverLocatorURI; | public ClientConnectionDelegate(String objectID, String serverLocatorURI, String serverID, Version serverVersion) { super(objectID); this.serverID = serverID; this.serverVersion = serverVersion; this.serverLocatorURI = serverLocatorURI; } | |
int index = pItems.indexOf((String) event.getItem()); if (event.getStateChange() == ItemEvent.SELECTED) this.selectedIndex = index; | processItemEvent(ItemEvent event){ if (item_listeners != null) item_listeners.itemStateChanged(event);} | |
Toolkit.getDefaultToolkit().globalDispatchEvent(e); | void dispatchEventImpl(AWTEvent e) { // Give toolkit a chance to dispatch the event // to globally registered listeners. Toolkit.getDefaultToolkit().globalDispatchEvent(e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. ... | |
(int) (border.left() / 3), (int) (border.right() / 3)); | (int) (border.left() / 3)); | private static void paintBorderSide(OutputDevice outputDevice, final BorderPropertySet border, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROOVE) { ... |
condensed = null; | public void addPoint(int x, int y) { if (npoints + 1 > xpoints.length) { int[] newx = new int[npoints + 1]; System.arraycopy(xpoints, 0, newx, 0, npoints); xpoints = newx; } if (npoints + 1 > ypoints.length) { int[] newy = new int[npoints + 1]; System.arraycopy... | |
return this._topStyle == IdentValue.NONE && (int)_top == 0; | return this._topStyle == IdentValue.NONE || (int) _top == 0; | public boolean noTop() { return this._topStyle == IdentValue.NONE && (int)_top == 0; } |
return this._leftStyle == IdentValue.NONE && (int)_left == 0; | return this._leftStyle == IdentValue.NONE || (int) _left == 0; | public boolean noLeft() { return this._leftStyle == IdentValue.NONE && (int)_left == 0; } |
return this._bottomStyle == IdentValue.NONE && (int)_bottom == 0; | return this._bottomStyle == IdentValue.NONE || (int) _bottom == 0; | public boolean noBottom() { return this._bottomStyle == IdentValue.NONE && (int)_bottom == 0; } |
return this._rightStyle == IdentValue.NONE && (int)_right == 0; | return this._rightStyle == IdentValue.NONE || (int) _right == 0; | public boolean noRight() { return this._rightStyle == IdentValue.NONE && (int)_right == 0; } |
public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; | public BorderPropertySet(BorderPropertySet border) { this(border.top(), border.right(), border.bottom(), border.left()); this._topStyle = border.topStyle(); this._rightStyle = border.rightStyle(); this._bottomStyle = border.bottomStyle(); this._leftStyle = border.leftStyle(); | public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this.buildKey(CSSName.BORDER_SHORTHAND); } |
this.buildKey(CSSName.BORDER_SHORTHAND); | this._topColor = border.topColor(); this._rightColor = border.rightColor(); this._bottomColor = border.bottomColor(); this._leftColor = border.leftColor(); this._key = border._key; | public BorderPropertySet( float top, float right, float bottom, float left ) { this._top = top; this._right = right; this._bottom = bottom; this._left = left; this.buildKey(CSSName.BORDER_SHORTHAND); } |
String thisAddress = serverLocator.getHost(); | String thisAddress = CLIENT_HOST; if (thisAddress==null) { thisAddress = InetAddress.getLocalHost().getHostAddress(); } | protected Connector startCallbackServer(InvokerLocator serverLocator) throws Exception { if (log.isTraceEnabled()) { log.trace(this + " setting up connection to " + serverLocator); } final int MAX_RETRIES = 50; boolean completed = false; Connector server = null; String serializationType = ... |
if (content instanceof ReplacedContent) { | if (content instanceof InlineBlockContent) { | private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { CalculatedStyle style = content.getStyle(); // get t... |
if (content instanceof ReplacedContent) { | if (content instanceof InlineBlockContent) { | private boolean isEndOfBlock(InlineBox prev_inline, Content content) { // replaced elements aren't split, so done with this one if (content instanceof ReplacedContent) { return true; } if (content instanceof FloatedBlockContent) { return true; } /*if (... |
Object last = contentList.get(contentList.size() - 1); if (last instanceof AnonymousBlockContent || last instanceof BlockContent) { | if (ContentUtil.isBlockContent(contentList)) { | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... |
if (!(currentContent instanceof ReplacedContent)) { | if (!(currentContent instanceof InlineBlockContent)) { | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0)... |
public CalculatedStyle getStyle(); | public CascadedStyle getStyle(); | public CalculatedStyle getStyle(); |
log.info("*** Set interrupt endpoint"); | protected void startDevice() throws DriverException { try { final USBDevice usbDev = (USBDevice)getDevice(); this.usbDevData = new USBStorageDeviceData();// Set configuration 0 final USBConfiguration conf = usbDev.getConfiguration(0); usbDev.setConfigurat... | |
| USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); | | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), packet); | public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); pipe.syncSubmit(r... |
log.debug("*** Time out reach, request status :" + req.getStatus()); | log.debug("*** Request data : " + req.toString()); log.debug("*** Request status : 0x" + NumberUtils.hex(req.getStatus(),4)); log.debug("*** Packet size : " + packet.getSize()); log.debug("*** Packet data size : " + packet.getData().length); log.debug("*** Packet data : " + packet.toString()); if(req.ge... | public void getMaxLun(USBDevice usbDev) throws USBException { final USBControlPipe pipe = usbDev.getDefaultControlPipe(); final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1)); pipe.syncSubmit(r... |
g.setColor(graph.getHighlightColor()); | g.setColor(highlightColor); | public void paint(Graphics g) { int b = borderWidth; Graphics2D g2 = (Graphics2D)g; Dimension d = getSize(); boolean tmp = selected; int roundRectArc = StepRenderer.getArcSize(d.width - b, d.height - b); if(super.isOpaque()) { g.setColor(super.getBackground()); if(gradientColor != null... |
log.info("Run all tests"); persistor.close(); | protected void run() { try { init(); Iterator iter = tests.iterator(); while (iter.hasNext()) { Test test = (Test)iter.next(); test.run(); } } catch (Throwable e) { log.error("Failure in controller", e); } ... | |
public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) | public static CoreMessage createCoreMessage(long messageID) | public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); } |
return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); | return createCoreMessage(messageID, false, 0, 0, (byte)4, null, null); | public static CoreMessage createCoreMessage(long messageID, boolean reliable, Serializable payload) { return createCoreMessage(messageID, reliable, 0, 0, (byte)4, null, payload, 0); } |
public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) | public CoreMessage() | public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { super(messageID, reliable, expiration, timestamp, pr... |
super(messageID, reliable, expiration, timestamp, priority, 0, headers, payload); | public CoreMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map headers, byte[] payload) { super(messageID, reliable, expiration, timestamp, pr... | |
setVerticalAlignment(TOP); | setVerticalAlignment(CENTER); | public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { if (leaf) setIcon(getLeafI... |
g.fillRect(tr.x, tr.y, tr.width, tr.height - insets.top - insets.bottom); | g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... |
super.paint(g); if (hasFocus) { | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | |
g.drawRect(tr.x, tr.y, tr.width, tr.height - insets.top - insets.bottom); | g.drawRect(bounds.x, bounds.y, bounds.width, bounds.height - 1); } | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... |
super.paint(g); | public void paint(Graphics g) { // paint background Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = new Insets(0, 0, 0, 0); Border border = UIManager.getBorder("Tree.selectionBorder"); if (border != null) insets = border.getBorde... | |
{ return text; } | { return labelText; } | public String getText() { return text; } |
{ return icon; } | { return activeIcon; } | public Icon getIcon() { return icon; } |
{ return vert_align; } | { return verticalAlignment; } | public int getVerticalAlignment() { // Returns the alignment of the label's contents along the Y axis. return vert_align; } |
{ return hor_align; } | { return horizontalAlignment; } | public int getHorizontalAlignment() { // Returns the alignment of the label's contents along the X axis. return hor_align; } |
{ return vert_text_pos; } | { return verticalTextPosition; } | public int getVerticalTextPosition() { // Returns the vertical position of the label's text, relative to its image. return vert_text_pos; } |
{ return hor_text_pos; } | { return horizontalTextPosition; } | public int getHorizontalTextPosition() { // Returns the horizontal position of the label's text, relative to its image. return hor_text_pos; } |
{ return 0; } | { return iconTextGap; } | public int getIconTextGap() { // Returns the amount of space between the text and the icon displayed in this label. return 0; } |
{ this.icon = icon; if (icon != null) { } revalidate(); repaint(); } | { if (icon != activeIcon) { Icon oldIcon = activeIcon; activeIcon = icon; firePropertyChange(ICON_CHANGED_PROPERTY, oldIcon, activeIcon); } } | public void setIcon(Icon icon) { this.icon = icon; if (icon != null) { // XXX FIXME - icons do not know their parent// icon.setParent(this); } revalidate(); repaint(); } |
{ this.text = text; revalidate(); repaint(); } | { if (text != labelText) { String oldText = labelText; labelText = text; firePropertyChange(TEXT_CHANGED_PROPERTY, oldText, labelText); if (labelText.length() <= underlinedChar) setDisplayedMnemonicIndex(labelText.length() - 1); } } | public void setText(String text) { this.text = text; revalidate(); repaint(); } |
Image im = null; | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... | |
im = createImage (r.width, r.height); g2 = im.getGraphics (); | if (doubleBuffer == null || doubleBufferWidth != r.width || doubleBufferHeight != r.height) { doubleBuffer = createImage(r.width, r.height); doubleBufferWidth = r.width; doubleBufferHeight = r.height; } g2 = doubleBuffer.getGraphics (); | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... |
g.drawImage (im, 0, 0, (ImageObserver)null); | g.drawImage (doubleBuffer, 0, 0, (ImageObserver)null); | public void paint(Graphics g) { Graphics g2 = g; Image im = null; Rectangle r = getBounds (); // System.err.println(this + ".paint(...), bounds = " + r); if (use_double_buffer) { im = createImage (r.width, r.height); g2 = im.getGraphics (); if (this.getBackgro... |
method.setCompiledCode(code, level); | method.addCompiledCode(code, level); | public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isAbstract()) { super.compileRuntime(method, resolver, level, os); } else if (X86CompilerHelper.isClassInitializeNeeded(method)) { // Create the code to initialize and call the interpreter super.compil... |
method.setCompiledCode(new VmCompiledCode(this, bc, codePtr, code, | method.addCompiledCode(new VmCompiledCode(this, bc, codePtr, code, | public void compileRuntime(VmMethod method, ObjectResolver resolver, int level, NativeStream os) { if (method.isNative()) { throw new IllegalArgumentException( "Cannot compile native methods"); } //long start = System.currentTimeMillis(); //System.out.println("Compilin... |
this.magic = compiler.getMagic(); | public VmCompiledCode( NativeCodeCompiler compiler, VmByteCode bytecode, Address nativeCode, Object compiledCode, int size, VmCompiledExceptionHandler[] eTable, Address defaultExceptionHandler, VmAddressMap addressTable) { this.compiler = compiler; this.bytecode = bytecode; this.nativeCode = nativ... | |
return getList_counter(); | return list_counter; | public int getListCounter() { return getList_counter(); } |
CalculatedStyle derived = getCss().getDerivedStyle(parent, s); | CalculatedStyle derived = parent.deriveStyle(s); | public void pushStyle(CascadedStyle s) { CalculatedStyle parent = (CalculatedStyle) styleStack.peek(); CalculatedStyle derived = getCss().getDerivedStyle(parent, s); styleStack.push(derived); } |
this.setList_counter(counter); | list_counter = counter; | public void setListCounter(int counter) { this.setList_counter(counter); } |
public static void render( Level level, String msg ) { log( RENDER, level, msg ); } | public static void render(String msg) { render(Level.INFO, msg); } | public static void render( Level level, String msg ) { log( RENDER, level, msg ); } |
return new MessagingObjectInputStream(in); | return new MessagingObjectInputStream(new DataInputStream(in)); | public ObjectInputStream createInput(InputStream in, ClassLoader cl) throws IOException { return new MessagingObjectInputStream(in); } |
return new MessagingObjectOutputStream(out); | return new MessagingObjectOutputStream(new DataOutputStream(out)); | public ObjectOutputStream createOutput(OutputStream out) throws IOException { return new MessagingObjectOutputStream(out); } |
public SQLWarning(String reason, String SQLState, int vendorCode) | public SQLWarning(String message, String SQLState, int vendorCode) | public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } |
super(reason, SQLState, vendorCode); | super(message, SQLState, vendorCode); | public SQLWarning(String reason, String SQLState, int vendorCode) { super(reason, SQLState, vendorCode); } |
public static void fill(byte[] a, byte val) | public static void fill(boolean[] a, boolean val) | public static void fill(byte[] a, byte val) { fill(a, 0, a.length, val); } |
MessageStore ms = new PagingMessageStore("0"); | MessageStore ms = new SimpleMessageStore("0"); | protected void setUp() throws Exception { Message m = MessageFactory.createCoreMessage(0); m.putHeader("headerName01", "headerValue01"); MessageStore ms = new PagingMessageStore("0"); rs = (RoutableSupport)ms.reference(m); super.setUp(); log.debug("setup done"); } |
public void remove(int index) | public void remove(Component component) | public void remove(int index) { super.remove(index); removeTabAt(index); } |
super.remove(index); removeTabAt(index); | super.remove(component); | public void remove(int index) { super.remove(index); removeTabAt(index); } |
for (int i = tabs.size() - 1; i >= 0; i--) | setSelectedIndex(-1); for (int i = getTabCount() - 1; i >= 0; i--) | public void removeAll() { for (int i = tabs.size() - 1; i >= 0; i--) removeTabAt(i); } |
getComponentAt(index).show(); | if (comp != null) { Component[] children = getComponents(); for (int i = children.length - 1; i >= 0; --i) { if (children[i] == comp) { super.remove(i); comp.setVisible(true); break; } } } revalidate(); repaint(); | public void removeTabAt(int index) { checkIndex(index, 0, tabs.size()); tabs.remove(index); getComponentAt(index).show(); } |
public String getToolTipText(MouseEvent event) | public String getToolTipText() | public String getToolTipText(MouseEvent event) { return tool_tip_text; } |
editor.setModel(getModel()); | private void preadd() { StartFunctionEditor editor = new StartFunctionEditor((InitialActionCell)getCell()); FunctionDescriptor func = editor.add(); if(func != null) { preModel.add(func); } } | |
public JTextField(int columns) | public JTextField() | public JTextField(int columns) { this(null, null, columns); } |
this(null, null, columns); | this(null, null, 0); | public JTextField(int columns) { this(null, null, columns); } |
public JComboBox(Object[] itemArray) | public JComboBox(ComboBoxModel model) | public JComboBox(Object[] itemArray) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } |
this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); | setEditable(false); setEnabled(true); setMaximumRowCount(DEFAULT_MAXIMUM_ROW_COUNT); setModel(model); setActionCommand("comboBoxChanged"); lightWeightPopupEnabled = true; isEditable = false; updateUI(); | public JComboBox(Object[] itemArray) { this(new DefaultComboBoxModel(itemArray)); if (itemArray.length > 0) setSelectedIndex(0); } |
public BeanConnector() | public BeanConnector(Object aSource) | public BeanConnector() { } |
source = aSource; | public BeanConnector() { } | |
String n = (String)condition.getArgs().get("negate"); condition.getArgs().remove("negate"); cond.setNegate("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)); | public ConditionDescriptor add() { ConfigConditionDescriptor condition = getCondition(); if(condition == null) { return null; } condition = editCondition(condition, WorkflowDesigner.INSTANCE); if(condition != null) { ConditionDescriptor cond = DescriptorFactory.getFactory().createCondi... | |
String n = (String)condition.getArgs().get("negate"); condition.getArgs().remove("negate"); cond.setNegate("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)); | public void modify(ConditionDescriptor cond) { ConfigConditionDescriptor condition; if(cond.getName() != null) { condition = new ConfigConditionDescriptor(getConfigDescriptor(cond)); } else { condition = new ConfigConditionDescriptor(getModel().getPalette()); condition.setType(cond.ge... | |
if(func.getName() != null) | if(func.getName() != null && (getModel().getPalette().getPrefunction(func.getName()) != null)) | public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { function = new ConfigFunctionDescriptor(getModel().getPalette()); fun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.