rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
dos.writeByte(m.getType()); | oos.writeByte(m.getType()); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(ACTIVATE); | oos.writeByte(ACTIVATE); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.flush(); | oos.flush(); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(DEACTIVATE); | oos.writeByte(DEACTIVATE); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(GETMESSAGENOW); | oos.writeByte(GETMESSAGENOW); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeBoolean(wait); | oos.writeBoolean(wait); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(ACKNOWLEDGE); | oos.writeByte(ACKNOWLEDGE); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.write(SERIALIZED); | oos.write(SERIALIZED); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(CALLBACK); | oos.writeByte(CALLBACK); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeInt(consumerID); | oos.writeInt(consumerID); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeByte(del.getMessage().getType()); | oos.writeByte(del.getMessage().getType()); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.writeInt(del.getDeliveryCount()); | oos.writeInt(del.getDeliveryCount()); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.write(NULL_RESPONSE); | oos.write(NULL_RESPONSE); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
dos.write(MESSAGE_RESPONSE); | oos.write(MESSAGE_RESPONSE); | public void write(Object obj, OutputStream out) throws IOException { //Sanity check if (!(out instanceof JMSObjectOutputStream)) { throw new IllegalStateException("OutputStream must be an JMSObjectOutputStream"); } JMSObjectOutputStream oos = (JMSObjectOutputStream)out; ... |
private void writeHeader(MethodInvocation mi, DataOutputStream dos) throws IOException | private void writeHeader(MethodInvocation mi, ObjectOutputStream dos) throws IOException | private void writeHeader(MethodInvocation mi, DataOutputStream dos) throws IOException { int objectId = ((Integer)mi.getMetaData().getMetaData(Dispatcher.DISPATCHER, Dispatcher.OID)).intValue(); dos.writeInt(objectId); dos.writeLong(mi.getMethodHash()); } |
public static Message createMessage(Serializable messageID) | public static Message createMessage(byte type) | public static Message createMessage(Serializable messageID) { return createMessage(messageID, false, 0, 0, 4, 0, null, null, JBossMessage.TYPE, null, null, true, null, false, null, null, null); } |
return createMessage(messageID, false, 0, 0, 4, 0, null, null, JBossMessage.TYPE, null, null, true, null, false, null, null, null); | Message m = null; if (type == JBossMessage.TYPE) { m = new JBossMessage(); } else if (type == JBossObjectMessage.TYPE) { m = new JBossObjectMessage(); } else if (type == JBossTextMessage.TYPE) { m = new JBossTextMessage(); } else if (type == JBossBytesMessage.TYPE) { m = new JBossBytesMessage(); } else if (type == JBo... | public static Message createMessage(Serializable messageID) { return createMessage(messageID, false, 0, 0, 4, 0, null, null, JBossMessage.TYPE, null, null, true, null, false, null, null, null); } |
if(text == null) return ""; String txt = text.substring( start_index, end_index ); return txt; | public String getSubstring() { // new code for whitepsace handling if(master != null) { if(start_index == -1 || end_index == -1) { return master; } if(end_index < start_index) { u.p("warning: end is less than start: " + end_index + " < " +... | |
} | }*/ | public boolean isInlineElement() { if(this.getRealElement() == this.getParent().getParent().getRealElement()) { return false; } return true; } |
this.text = text; | this.master = text; | public void setSubstring(String text) { this.text = text; start_index = 0; end_index = text.length(); } |
if (trace) { log.trace("Ending xid=" + xid + ", success=" + success); } | if (trace) { log.trace("ending " + xid + ", success=" + success); } | public void endTx(Xid xid, boolean success) throws XAException { if (trace) { log.trace("Ending xid=" + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XA... |
if (trace) { log.trace("Joining tx xid=" + xid); } | if (trace) { log.trace("joining " + xid); } | public Xid joinTx(Xid xid) throws XAException { if (trace) { log.trace("Joining tx xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } ret... |
if (trace) { log.trace("Preparing xid=" + xid); } | if (trace) { log.trace("preparing " + xid); } | public int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("Preparing xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAExcepti... |
if (trace) { log.trace("Resuming tx xid=" + xid); } | if (trace) { log.trace("resuming " + xid); } | public Xid resumeTx(Xid xid) throws XAException { if (trace) { log.trace("Resuming tx xid=" + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } r... |
Object prop = properties.get(name); if (!(prop instanceof Boolean)) { throw new JMSException("Not boolean"); } | public boolean getBooleanProperty(String name) throws JMSException { return ((Boolean)properties.get(name)).booleanValue(); } | |
return ((Byte)properties.get(name)).byteValue(); | Object prop = properties.get(name); if (!(prop instanceof Byte)) { throw new JMSException("Not byte"); } return ((Byte)properties.get(name)).byteValue(); | public byte getByteProperty(String name) throws JMSException { return ((Byte)properties.get(name)).byteValue(); } |
Object prop = properties.get(name); if (!(prop instanceof Double)) { throw new JMSException("Not double"); } | public double getDoubleProperty(String name) throws JMSException { return ((Double)properties.get(name)).doubleValue(); } | |
Object prop = properties.get(name); if (!(prop instanceof Float)) { throw new JMSException("Not float"); } | public float getFloatProperty(String name) throws JMSException { return ((Float)properties.get(name)).floatValue(); } | |
Object prop = properties.get(name); if (!(prop instanceof Integer)) { throw new JMSException("Not int"); } | public int getIntProperty(String name) throws JMSException { return ((Integer)properties.get(name)).intValue(); } | |
Object prop = properties.get(name); if (!(prop instanceof Long)) { throw new JMSException("Not long"); } | public long getLongProperty(String name) throws JMSException { return ((Long)properties.get(name)).longValue(); } | |
Object prop = properties.get(name); if (!(prop instanceof Short)) { throw new JMSException("Not short"); } | public short getShortProperty(String name) throws JMSException { return ((Short)properties.get(name)).shortValue(); } | |
Object prop = properties.get(name); if (!(prop instanceof String)) { throw new JMSException("Not string"); } | public String getStringProperty(String name) throws JMSException { return (String)properties.get(name); } | |
log.info("acknowledging " + d); | public void acknowledge(Delivery d, Transaction tx) throws Throwable { if (trace) { log.trace("acknowledging " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } this.acknowledgeInternal(d, tx, true, false); } | |
log.info("router returned delivery " + del); | protected void deliverInternal(boolean handle) throws Throwable { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; ... | |
log.info("handling ref"); | public Delivery handle(DeliveryObserver sender, MessageReference ref, Transaction tx) { if (!active) { return null; } checkClosed(); Future result = new Future(); if (tx == null) { try { // Instead of executing directly, we a... | |
UIDefaults defaults; | public static Border getButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. Note ... | |
defaults = UIManager.getLookAndFeelDefaults(); | public static Border getButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. Note ... | |
outer = new ButtonBorder(defaults.getColor("Button.shadow"), defaults.getColor("Button.darkShadow"), defaults.getColor("Button.light"), defaults.getColor("Button.highlight")); | outer = new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highlight")); | public static Border getButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. Note ... |
UIDefaults defaults; | public static Border getInternalFrameBorder() { UIDefaults defaults; Color shadow, darkShadow, highlight, lightHighlight, line; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("InternalFrame.borderShado... | |
defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("InternalFrame.borderShadow"); darkShadow = defaults.getColor("InternalFrame.borderDarkShadow"); highlight = defaults.getColor("InternalFrame.borderLight"); lightHighlight = defaults.getColor("InternalFrame.borderHighlight"); line = defaults.get... | shadow = UIManager.getColor("InternalFrame.borderShadow"); darkShadow = UIManager.getColor("InternalFrame.borderDarkShadow"); highlight = UIManager.getColor("InternalFrame.borderLight"); lightHighlight = UIManager.getColor("InternalFrame.borderHighlight"); line = UIManager.getColor("InternalFrame.borderColor"); | public static Border getInternalFrameBorder() { UIDefaults defaults; Color shadow, darkShadow, highlight, lightHighlight, line; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); shadow = defaults.getColor("InternalFrame.borderShado... |
UIDefaults defaults; | public static Border getMenuBarBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new MenuBarBorder(defaults.getColor("MenuBar.shadow"), defaults.getColor("MenuBar.highligh... | |
defaults = UIManager.getLookAndFeelDefaults(); return new MenuBarBorder(defaults.getColor("MenuBar.shadow"), defaults.getColor("MenuBar.highlight")); | return new MenuBarBorder(UIManager.getColor("MenuBar.shadow"), UIManager.getColor("MenuBar.highlight")); | public static Border getMenuBarBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new MenuBarBorder(defaults.getColor("MenuBar.shadow"), defaults.getColor("MenuBar.highligh... |
UIDefaults defaults; | public static Border getRadioButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. ... | |
defaults = UIManager.getLookAndFeelDefaults(); | public static Border getRadioButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. ... | |
defaults.getColor("RadioButton.shadow"), defaults.getColor("RadioButton.darkShadow"), defaults.getColor("RadioButton.light"), defaults.getColor("RadioButton.highlight")); | UIManager.getColor("RadioButton.shadow"), UIManager.getColor("RadioButton.darkShadow"), UIManager.getColor("RadioButton.light"), UIManager.getColor("RadioButton.highlight")); | public static Border getRadioButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux. ... |
UIDefaults defaults; | public static Border getSplitPaneBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneBorder(defaults.getColor("SplitPane.highlight"), defaults.getColor("Split... | |
defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneBorder(defaults.getColor("SplitPane.highlight"), defaults.getColor("SplitPane.darkShadow")); | return new SplitPaneBorder(UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow")); | public static Border getSplitPaneBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneBorder(defaults.getColor("SplitPane.highlight"), defaults.getColor("Split... |
UIDefaults defaults; | public static Border getSplitPaneDividerBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneDividerBorder( defaults.getColor("SplitPane.highlight"), defaults.getColor("SplitPane.... | |
defaults = UIManager.getLookAndFeelDefaults(); | public static Border getSplitPaneDividerBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneDividerBorder( defaults.getColor("SplitPane.highlight"), defaults.getColor("SplitPane.... | |
defaults.getColor("SplitPane.highlight"), defaults.getColor("SplitPane.darkShadow")); | UIManager.getColor("SplitPane.highlight"), UIManager.getColor("SplitPane.darkShadow")); | public static Border getSplitPaneDividerBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new SplitPaneDividerBorder( defaults.getColor("SplitPane.highlight"), defaults.getColor("SplitPane.... |
UIDefaults defaults; | public static Border getTextFieldBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new FieldBorder( defaults.getColor("TextField.shadow"), defaults.getColor("TextField.darkShadow"), de... | |
defaults = UIManager.getLookAndFeelDefaults(); | public static Border getTextFieldBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new FieldBorder( defaults.getColor("TextField.shadow"), defaults.getColor("TextField.darkShadow"), de... | |
defaults.getColor("TextField.shadow"), defaults.getColor("TextField.darkShadow"), defaults.getColor("TextField.light"), defaults.getColor("TextField.highlight")); | UIManager.getColor("TextField.shadow"), UIManager.getColor("TextField.darkShadow"), UIManager.getColor("TextField.light"), UIManager.getColor("TextField.highlight")); | public static Border getTextFieldBorder() { UIDefaults defaults; /* See comment in methods above for why this border is not shared. */ defaults = UIManager.getLookAndFeelDefaults(); return new FieldBorder( defaults.getColor("TextField.shadow"), defaults.getColor("TextField.darkShadow"), de... |
UIDefaults defaults; | public static Border getToggleButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux.... | |
defaults = UIManager.getLookAndFeelDefaults(); | public static Border getToggleButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux.... | |
defaults.getColor("ToggleButton.shadow"), defaults.getColor("ToggleButton.darkShadow"), defaults.getColor("ToggleButton.light"), defaults.getColor("ToggleButton.highlight")); | UIManager.getColor("ToggleButton.shadow"), UIManager.getColor("ToggleButton.darkShadow"), UIManager.getColor("ToggleButton.light"), UIManager.getColor("ToggleButton.highlight")); | public static Border getToggleButtonBorder() { UIDefaults defaults; Border outer; defaults = UIManager.getLookAndFeelDefaults(); /* The keys for UIDefaults have been determined by writing a * test program that dumps the UIDefaults to stdout; that program * was run on a JDK 1.4.1_01 for GNU/Linux.... |
Client client = new Client(locator); | Client client = new Client(locator, ServerPeer.REMOTING_JMS_SUBSYSTEM); | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... |
nodeId = in.readUTF(); | nodeId = in.readInt(); | public void read(DataInputStream in) throws Exception { address = new IpAddress(); address.readFrom(in); nodeId = in.readUTF(); } |
out.writeUTF(nodeId); | out.writeInt(nodeId); | public void write(DataOutputStream out) throws Exception { if (!(address instanceof IpAddress)) { throw new IllegalStateException("Address must be IpAddress"); } address.writeTo(out); out.writeUTF(nodeId); } |
ServerManagement.deInit(); | public void tearDown() throws Exception { connection.stop(); connection = null; ServerManagement.deInit(); super.tearDown(); } | |
if (ret == null || isAfter(mr, ret, data.getDate())) { | if (ret == null) { Message.debug("\tmodule revision kept as first found: "+mr.getId()); ret = mr; } else if (isAfter(mr, ret, data.getDate())) { | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { data = new ResolveData(data, doValidate(data)); ResolvedModuleRevision ret = null; for (Iterator iter = _chain.iterator(); iter.hasNext();) { DependencyResolver reso... |
new ResolvedModuleRevisionArtifactInfo(rmr1), new ResolvedModuleRevisionArtifactInfo(rmr2) | new ResolvedModuleRevisionArtifactInfo(rmr2), new ResolvedModuleRevisionArtifactInfo(rmr1) | private boolean isAfter(ResolvedModuleRevision rmr1, ResolvedModuleRevision rmr2, Date date) { ArtifactInfo[] ais = new ArtifactInfo[] { new ResolvedModuleRevisionArtifactInfo(rmr1), new ResolvedModuleRevisionArtifactInfo(rmr2) }; return getLatestStrategy().findLat... |
return getLatestStrategy().findLatest(ais, date) != ais[1]; | return getLatestStrategy().findLatest(ais, date) != ais[0]; | private boolean isAfter(ResolvedModuleRevision rmr1, ResolvedModuleRevision rmr2, Date date) { ArtifactInfo[] ais = new ArtifactInfo[] { new ResolvedModuleRevisionArtifactInfo(rmr1), new ResolvedModuleRevisionArtifactInfo(rmr2) }; return getLatestStrategy().findLat... |
public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver resolver) { | public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver artresolver) { | public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver resolver) { if (mr == null) { throw new NullPointerException("null module revision not allowed"); } if (resolver == null) { throw new NullPointerException("null resolver not allowed"); ... |
if (resolver == null) { | if (artresolver == null) { | public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver resolver) { if (mr == null) { throw new NullPointerException("null module revision not allowed"); } if (resolver == null) { throw new NullPointerException("null resolver not allowed"); ... |
_resolver = resolver; | _resolver = artresolver; | public ResolvedModuleRevisionProxy(ResolvedModuleRevision mr, DependencyResolver resolver) { if (mr == null) { throw new NullPointerException("null module revision not allowed"); } if (resolver == null) { throw new NullPointerException("null resolver not allowed"); ... |
*/ | public static Font getElementFont(Context c, Element el) { //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); if(quick) { //f = f.deriveFont((float)((int)(Math.random()*10))); return f; } if(el.getParentNode().getNodeType() == el.DOCUMENT_NODE) { //u.p("ended up at ... | |
public Font deriveFont(float size) { return new Font(name, style, (int) size); | public Font deriveFont(int style) { return new Font(name, style, size); | public Font deriveFont(float size) { return new Font(name, style, (int) size); } |
throws NotImplementedException | public VariableHeightLayoutCache() throws NotImplementedException { // TODO } | |
public Rectangle getBounds(TreePath value0, Rectangle value1) throws NotImplementedException | public Rectangle getBounds(TreePath path, Rectangle rect) | public Rectangle getBounds(TreePath value0, Rectangle value1) throws NotImplementedException { return null; // TODO } |
return null; | if (dirty) update(); Object last = path.getLastPathComponent(); NodeRecord r = (NodeRecord) nodes.get(last); if (r == null) { rect.x = rect.y = rect.width = rect.height = 0; } else { if (r.bounds == null) { Rectangle dim = getNodeDimensions(last, r.row, r.depth, r.isExpanded, rect); r.bounds = dim; } rect.setRect(r.b... | public Rectangle getBounds(TreePath value0, Rectangle value1) throws NotImplementedException { return null; // TODO } |
return null; | if (dirty) update(); NodeRecord best = null; NodeRecord r; Enumeration en = nodes.elements(); int dist = Integer.MAX_VALUE; while (en.hasMoreElements() && dist > 0) { r = (NodeRecord) en.nextElement(); if (best == null) { best = r; dist = distance(r.getBounds(), x, y); } else { int rr = distance(r.getBounds(), x, y... | public TreePath getPathClosestTo(int value0, int value1) throws NotImplementedException { return null; // TODO } |
public TreePath getPathForRow(int value0) throws NotImplementedException | public TreePath getPathForRow(int row) | public TreePath getPathForRow(int value0) throws NotImplementedException { return null; // TODO } |
return null; | if (dirty) update(); Object last = row2node.get(new Integer(row)); if (last == null) return null; else { NodeRecord r = (NodeRecord) nodes.get(last); return r.getPath(); } | public TreePath getPathForRow(int value0) throws NotImplementedException { return null; // TODO } |
public int getPreferredHeight() throws NotImplementedException | public int getPreferredHeight() | public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } |
return 0; | if (dirty) update(); totalHeight = 0; Enumeration en = nodes.elements(); while (en.hasMoreElements()) { NodeRecord nr = (NodeRecord) en.nextElement(); Rectangle r = nr.getBounds(); totalHeight += r.height; } return totalHeight; | public int getPreferredHeight() throws NotImplementedException { return 0; // TODO } |
public int getPreferredWidth(Rectangle value0) throws NotImplementedException | public int getPreferredWidth(Rectangle value) | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } |
return 0; | if (dirty) update(); maximalWidth = 0; Enumeration en = nodes.elements(); while (en.hasMoreElements()) { NodeRecord nr = (NodeRecord) en.nextElement(); Rectangle r = nr.getBounds(); if (r.x + r.width > maximalWidth) maximalWidth = r.x + r.width; } return maximalWidth; | public int getPreferredWidth(Rectangle value0) throws NotImplementedException { return 0; // TODO } |
public int getRowCount() throws NotImplementedException | public int getRowCount() | public int getRowCount() throws NotImplementedException { return 0; // TODO } |
public int getRowForPath(TreePath value0) throws NotImplementedException | public int getRowForPath(TreePath path) | public int getRowForPath(TreePath value0) throws NotImplementedException { return 0; // TODO } |
return 0; | if (dirty) update(); NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r == null) return - 1; else return r.row; | public int getRowForPath(TreePath value0) throws NotImplementedException { return 0; // TODO } |
public void invalidatePathBounds(TreePath value0) throws NotImplementedException | public void invalidatePathBounds(TreePath path) | public void invalidatePathBounds(TreePath value0) throws NotImplementedException { // TODO } |
NodeRecord r = (NodeRecord) nodes.get(path.getLastPathComponent()); if (r!=null) r.bounds = null; | public void invalidatePathBounds(TreePath value0) throws NotImplementedException { // TODO } | |
public void invalidateSizes() throws NotImplementedException | public void invalidateSizes() | public void invalidateSizes() throws NotImplementedException { // TODO } |
public boolean isExpanded(TreePath value0) throws NotImplementedException | public boolean isExpanded(TreePath path) | public boolean isExpanded(TreePath value0) throws NotImplementedException { return false; // TODO } |
return false; | return expanded.contains(path.getLastPathComponent()); | public boolean isExpanded(TreePath value0) throws NotImplementedException { return false; // TODO } |
public void setModel(TreeModel value0) throws NotImplementedException | public void setModel(TreeModel newModel) | public void setModel(TreeModel value0) throws NotImplementedException { // TODO } |
treeModel = newModel; dirty = true; | public void setModel(TreeModel value0) throws NotImplementedException { // TODO } | |
public void setRootVisible(boolean value0) throws NotImplementedException | public void setRootVisible(boolean visible) | public void setRootVisible(boolean value0) throws NotImplementedException { // TODO } |
rootVisible = visible; dirty = true; | public void setRootVisible(boolean value0) throws NotImplementedException { // TODO } | |
public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) | public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet) | public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { return view.getNextVisualPositionFrom(c, pos, b, d, biasRet); } |
return view.getNextVisualPositionFrom(c, pos, b, d, biasRet); | return view.getNextVisualPositionFrom(pos, b, a, d, biasRet); | public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { return view.getNextVisualPositionFrom(c, pos, b, d, biasRet); } |
public void changedUpdate(DocumentEvent event); | void changedUpdate(DocumentEvent event); | public void changedUpdate(DocumentEvent event); |
public void insertUpdate(DocumentEvent event); | void insertUpdate(DocumentEvent event); | public void insertUpdate(DocumentEvent event); |
public void removeUpdate(DocumentEvent event); | void removeUpdate(DocumentEvent event); | public void removeUpdate(DocumentEvent event); |
else ((JComponent) getContainer()).revalidate(); | public void preferenceChanged(View child, boolean width, boolean height) { if (parent != null) parent.preferenceChanged(this, width, height); } | |
public abstract void damageRange(JTextComponent t, int p0, int p1); | public abstract void damageRange(JTextComponent tc, int start, int end); | public abstract void damageRange(JTextComponent t, int p0, int p1); |
public abstract EditorKit getEditorKit(JTextComponent t); | public abstract EditorKit getEditorKit(JTextComponent tc); | public abstract EditorKit getEditorKit(JTextComponent t); |
public abstract int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet); | public abstract int getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias) throws BadLocationException; | public abstract int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet); |
public abstract View getRootView(JTextComponent t); | public abstract View getRootView(JTextComponent tc); | public abstract View getRootView(JTextComponent t); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.