rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
anonymousCell.addChild(curr);
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
return null;
return AccessibleRole.SPLIT_PANE;
public AccessibleRole getAccessibleRole() { return null; }
return null;
AccessibleStateSet result = super.getAccessibleStateSet(); if (getOrientation() == HORIZONTAL_SPLIT) { result.add(AccessibleState.HORIZONTAL); } else if (getOrientation() == VERTICAL_SPLIT) { result.add(AccessibleState.VERTICAL); } return result;
public AccessibleStateSet getAccessibleStateSet() { return null; }
return null;
return new Integer(getDividerLocation());
public Number getCurrentAccessibleValue() { return null; }
return null;
return new Integer(getMaximumDividerLocation());
public Number getMaximumAccessibleValue() { return null; }
return null;
return new Integer(getMinimumDividerLocation());
public Number getMinimumAccessibleValue() { return null; }
Number oldValue = getCurrentAccessibleValue(); setDividerLocation(value.intValue()); firePropertyChange(AccessibleContext.ACCESSIBLE_VALUE_PROPERTY, oldValue, new Integer(value.intValue())); return true;
public boolean setCurrentAccessibleValue(Number value0) { return false; }
clientDividerSizeSet = true;
public void setDividerSize(int newSize) { if (newSize != dividerSize) { int oldSize = dividerSize; dividerSize = newSize; firePropertyChange(DIVIDER_SIZE_PROPERTY, oldSize, dividerSize); } }
clientOneTouchExpandableSet = true;
public void setOneTouchExpandable(boolean newValue) { if (newValue != oneTouchExpandable) { boolean oldValue = oneTouchExpandable; oneTouchExpandable = newValue; firePropertyChange(ONE_TOUCH_EXPANDABLE_PROPERTY, oldValue, oneTouchExpandable); } }
public abstract int getDividerLocation(JSplitPane splitpane);
public abstract int getDividerLocation(JSplitPane pane);
public abstract int getDividerLocation(JSplitPane splitpane);
public abstract int getMaximumDividerLocation(JSplitPane splitpane);
public abstract int getMaximumDividerLocation(JSplitPane pane);
public abstract int getMaximumDividerLocation(JSplitPane splitpane);
public abstract int getMinimumDividerLocation(JSplitPane splitpane);
public abstract int getMinimumDividerLocation(JSplitPane pane);
public abstract int getMinimumDividerLocation(JSplitPane splitpane);
public abstract void finishedPaintingChildren(JSplitPane splitpane, Graphics graphics);
public abstract void finishedPaintingChildren(JSplitPane pane, Graphics g);
public abstract void finishedPaintingChildren(JSplitPane splitpane, Graphics graphics);
public abstract void resetToPreferredSizes(JSplitPane splitpane);
public abstract void resetToPreferredSizes(JSplitPane pane);
public abstract void resetToPreferredSizes(JSplitPane splitpane);
public abstract void setDividerLocation(JSplitPane splitpane, int location);
public abstract void setDividerLocation(JSplitPane pane, int location);
public abstract void setDividerLocation(JSplitPane splitpane, int location);
if (b.hasFocus())
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelecte...
Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle();
Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle();
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = ...
FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); vr.x = i.left; vr.y = i.top; vr.width = b.getWidth() - (i.right + vr.x); vr.height = b.getHeight() - (i.bottom + vr.y);
SwingUtilities.calculateInnerArea(b, br); SwingUtilities.calculateInsetArea(br, b.getMargin(), vr); String text = SwingUtilities.layoutCompoundLabel(c, g.getFontMetrics(f), b.getText(), currentIcon(b), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ...
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = ...
String text = SwingUtilities.layoutCompoundLabel(c, fm, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, gap); if (b.getModel().isPressed() || b.getModel().isSelected()) { paintButtonPressed(g, c); } else { paintBu...
paintIcon(g, c, ir); if (text != null) paintText(g, c, tr, b.getText()); paintFocus(g, c, vr, tr, ir); }
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = ...
return getPage(c, box.getAbsY() + box.getHeight());
return getPage(c, box.getAbsY() + box.getHeight() - 1);
public PageBox getLastPage(CssContext c, Box box) { return getPage(c, box.getAbsY() + box.getHeight()); }
Set destinations = (Set)ServerManagement.invoke(serverPeerObjectName, "getDestinations", new Object[0], new String[0]);
Set destinations = (Set)ServerManagement.getAttribute(serverPeerObjectName, "Destinations");
public void testDeployDestinationAdministratively() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=Kirkwoo...
set = (Set)ServerManagement.invoke(serverPeerObjectName, "getDestinations", new Object[0], new String[0]);
set = (Set)ServerManagement.getAttribute(serverPeerObjectName, "Destinations");
public void testDeployDestinationProgramatically() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String destinationType = isQueue() ? "Queue" : "Topic"; String createMethod = "create" + destinationType; String destroyMethod = "destroy" + destin...
boolean hasAttributes = node.hasAttributes();
NamedNodeMap attrs = node.getAttributes(); int attrCount = attrs.getLength();
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
if (hasAttributes != node2.hasAttributes())
NamedNodeMap attrs2 = node2.getAttributes(); int attrCount2 = attrs2.getLength(); if (attrCount != attrCount2)
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
throw new XMLRuntimeException("one node has attributes and the other doesn't");
throw new XMLRuntimeException("nodes hava a different number of attributes");
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
if (hasAttributes)
outer: for(int i = 0; i < attrCount; i++)
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
NamedNodeMap attrs = node.getAttributes(); int length = attrs.getLength();
Node n = attrs.item(i); String name = n.getNodeName(); String value = n.getNodeValue();
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
NamedNodeMap attrs2 = node2.getAttributes(); int length2 = attrs2.getLength();
for(int j = 0; j < attrCount; j++) { Node n2 = attrs2.item(j); String name2 = n2.getNodeName(); String value2 = n2.getNodeValue();
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
if (length != length2) { throw new XMLRuntimeException("nodes hava a different number of attributes");
if (name.equals(name2) && value.equals(value2)) { continue outer; }
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
outer: for(int i = 0; i < length; i++) { Node n = attrs.item(i); String name = n.getNodeName(); String value = n.getNodeValue(); for(int j = 0; j < length; j++) { Node n2 = attrs2.item(j); String name2 = n2.getNodeName(); String value2 = n2.getNodeValue(); if (name.equals(name2) && value.equals(value2)) { continue ou...
throw new XMLRuntimeException("attribute " + name + "=" + value + " doesn't match");
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } if (!node.get...
Toolkit.getDefaultToolkit().globalDispatchEvent(e);
public final void dispatchEvent(AWTEvent e) { Event oldEvent = translateEvent(e); if (oldEvent != null) postEvent (oldEvent); // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); }
if (box.getState() == 2) {
if (box.getState() == Box.CHILDREN_FLUX) {
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); //BoxRendering.paint(c, box, false, restyle); //return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", fal...
Uu.p("no intersection. skipping");
public static void paintChild(Context c, Box box, boolean restyle) { if (box.isChildrenExceedBounds()) { //Uu.p("box children exceed: " + box); //BoxRendering.paint(c, box, false, restyle); //return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", fal...
public MessagingMarshallable(byte version, Object load) { this.version = version; this.load = load;
public MessagingMarshallable() {
public MessagingMarshallable(byte version, Object load) { this.version = version; this.load = load; }
m.setText("something");
m.setText("one");
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
TextMessage rm = (TextMessage)qreceiver.receive(5000);
TextMessage rm = (TextMessage)qreceiver.receive(1000);
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
assertEquals("something", rm.getText());
assertEquals("two", rm.getText());
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
tr = new TransactionRepository(pm, idm);
public void testNonRecoverableQueueCrash() throws Throwable { //Non recoverable queue - eg temporary queue PagingFilteredQueue queue = new PagingFilteredQueue("queue1", 1, ms, pm, true, true, new QueuedExecutor(), null, 100, 20, 10); Message[] msgs = new Message[200]; MessageR...
tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
tr = new TransactionRepository(pm, idm);
public void testRecoverableQueueCrash() throws Throwable { PagingFilteredQueue queue = new PagingFilteredQueue("queue1", 1, ms, pm, true, true, new QueuedExecutor(), null, 100, 20, 10); Message[] msgs = new Message[200]; MessageReference[] refs = new MessageReference[200]; //Send 1...
tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
idm = new IdManager("TRANSACTION_ID", 10, pm); idm.start(); tr = new TransactionRepository(pm, idm);
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null, true, true, true, 100); pm.start();...
Point2D outputLoc = new Point2D.Float(); inverse.transform(new Point(x, y), outputLoc);
double[] mx = new double[6]; inverse.getMatrix(mx);
private void drawPDFAsImage(PDFAsImage image, int x, int y) { URL url = image.getURL(); PdfReader reader = null; try { reader = getReader(url); } catch (IOException e) { throw new XRRuntimeException("Could not load " + url + ": " + e.getM...
AffineTransform outputT = AffineTransform.getTranslateInstance( outputLoc.getX(), outputLoc.getY()); outputT.scale(image.scaleWidth(), image.scaleHeight()); double[] mx = new double[6]; outputT.getMatrix(mx);
mx[0] = image.scaleWidth(); mx[3] = image.scaleHeight();
private void drawPDFAsImage(PDFAsImage image, int x, int y) { URL url = image.getURL(); PdfReader reader = null; try { reader = getReader(url); } catch (IOException e) { throw new XRRuntimeException("Could not load " + url + ": " + e.getM...
else if (drawType==FILL) ensureFillColor();
private void followPath(Shape s, int drawType) { PdfContentByte cb = _currentPage; if (s==null) return; if (drawType==STROKE) { if (!(_stroke instanceof BasicStroke)) { s = _stroke.createStrokedShape(s); followPath(s, FILL); return; ...
if (drawType == CLIP)
if (drawType == CLIP) {
private void followPath(Shape s, int drawType) { PdfContentByte cb = _currentPage; if (s==null) return; if (drawType==STROKE) { if (!(_stroke instanceof BasicStroke)) { s = _stroke.createStrokedShape(s); followPath(s, FILL); return; ...
else
} else {
private void followPath(Shape s, int drawType) { PdfContentByte cb = _currentPage; if (s==null) return; if (drawType==STROKE) { if (!(_stroke instanceof BasicStroke)) { s = _stroke.createStrokedShape(s); followPath(s, FILL); return; ...
}
private void followPath(Shape s, int drawType) { PdfContentByte cb = _currentPage; if (s==null) return; if (drawType==STROKE) { if (!(_stroke instanceof BasicStroke)) { s = _stroke.createStrokedShape(s); followPath(s, FILL); return; ...
public static boolean equals(float[] a1, float[] a2)
public static boolean equals(boolean[] a1, boolean[] a2)
public static boolean equals(float[] a1, float[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // Must use Float.compare to take into account NaN, +...
if (Float.compare(a1[i], a2[i]) != 0)
if (a1[i] != a2[i])
public static boolean equals(float[] a1, float[] a2) { // Quick test which saves comparing elements of the same array, and also // catches the case that both are null. if (a1 == a2) return true; if (null == a1 || null == a2) return false; // Must use Float.compare to take into account NaN, +...
protected InitialDirContext (boolean lazy)
public InitialDirContext ()
protected InitialDirContext (boolean lazy) throws NamingException { super (lazy); }
super (lazy);
this (null);
protected InitialDirContext (boolean lazy) throws NamingException { super (lazy); }
protected void init(Hashtable environment) { final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, };
protected void init (Hashtable environment) throws NamingException { final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; if (environment != null) myProps = (Hashtable) environment.clone (...
protected void init(Hashtable environment) { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment i...
if (environment != null) myProps = (Hashtable)environment.clone(); else myProps = new Hashtable();
try { Enumeration ep = Thread.currentThread().getContextClassLoader().getResources("jndi.naming"); while (ep.hasMoreElements ()) { URL url = (URL) ep.nextElement (); Properties p = new Properties (); try { InputStream is = url.openStream (); p.load (is); is.close (); } catch (IOException e) { }
protected void init(Hashtable environment) { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment i...
/*Applet napplet = (Applet)myProps.get(Context.APPLET);
merge (myProps, p); } } catch (IOException e) { }
protected void init(Hashtable environment) { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment i...
for (int i = properties.length - 1; i >= 0; i--) { Object o = myProps.get(properties[i]);
String home = System.getProperty("gnu.classpath.home.url"); if (home != null) { String url = home + "/jndi.properties"; Properties p = new Properties (); try { InputStream is = new URL(url).openStream(); p.load (is); is.close (); } catch (IOException e) { }
protected void init(Hashtable environment) { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment i...
if (o == null) { if (napplet != null) o = napplet.getParameter(properties[i]); if (o == null) o = System.getProperty(properties[i]); if (o != null) myProps.put(properties[i], o); } }*/ try { Enumeration ep = Thread.currentThread().getContextClassLoader().getResources( "jndi.naming"); while (ep.hasMoreElements()) { URL...
merge (myProps, p); } }
protected void init(Hashtable environment) { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment i...
public ExtendedResponse extendedOperation(ExtendedRequest request)
ExtendedResponse extendedOperation(ExtendedRequest request)
public ExtendedResponse extendedOperation(ExtendedRequest request) throws NamingException;
public Control[] getConnectControls() throws NamingException;
Control[] getConnectControls() throws NamingException;
public Control[] getConnectControls() throws NamingException;
public Control[] getRequestControls() throws NamingException;
Control[] getRequestControls() throws NamingException;
public Control[] getRequestControls() throws NamingException;
public Control[] getResponseControls() throws NamingException;
Control[] getResponseControls() throws NamingException;
public Control[] getResponseControls() throws NamingException;
public LdapContext newInstance(Control[] requestControls)
LdapContext newInstance(Control[] requestControls)
public LdapContext newInstance(Control[] requestControls) throws NamingException;
public void reconnect(Control[] connCtls) throws NamingException;
void reconnect(Control[] connCtls) throws NamingException;
public void reconnect(Control[] connCtls) throws NamingException;
public void setRequestControls(Control[] requestControls)
void setRequestControls(Control[] requestControls)
public void setRequestControls(Control[] requestControls) throws NamingException;
public BlockContent(Element e, CalculatedStyle style) {
BlockContent(Element e, CascadedStyle style) {
public BlockContent(Element e, CalculatedStyle style) { _elem = e; _style = style; }
int rad = 8; int baseline = box.height; c.getGraphics().fillOval( box.x - rad - 2, box.y + baseline / 2 - rad / 2 + 2, rad, rad );
c.getGraphics().fillOval( x, y, rad, rad );
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
int rad = 8; int baseline = box.height; c.getGraphics().fillRect( box.x - rad - 2, box.y + baseline / 2 - rad / 2 + 2, rad, rad );
c.getGraphics().fillRect( x, y, rad, rad );
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
int rad = 8; int baseline = box.height; c.getGraphics().drawOval( box.x - rad - 2, box.y + baseline / 2 - rad / 2 + 2, rad, rad );
c.getGraphics().drawOval( x, y, rad, rad );
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
if ( type.equals( "lower-greek" ) ) { type = "decimal"; } if ( type.equals( "decimal-leading-zero" ) ) { type = "decimal"; }
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
c.getGraphics().drawString( "" + box.list_count, box.x - 15, box.y + box.height / 2 + 8 );
drawText(c,box,type);
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
c.getGraphics().drawString( "" + toLatin( box.list_count ).toLowerCase(), box.x - 15, box.y + box.height / 2 + 8 );
drawText(c,box,type);
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
c.getGraphics().drawString( "" + toLatin( box.list_count ).toUpperCase(), box.x - 15, box.y + box.height / 2 + 8 );
drawText(c,box,type);
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
c.getGraphics().drawString( "" + toRoman( box.list_count ).toLowerCase(), box.x - 15, box.y + box.height / 2 + 8 );
drawText(c,box,type);
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
c.getGraphics().drawString( "" + toRoman( box.list_count ).toUpperCase(), box.x - 15, box.y + box.height / 2 + 8 );
drawText(c,box,type);
public static void paint( Context c, Box box ) { String type = c.css.getStringProperty( box.node, "list-style-type" ); if ( type.equals( "none" ) ) { return; } String image = c.css.getStringProperty( box.node, "list-style-image" ); Image img = null; if ( !image.e...
if (file.isDirectory()) { URL url = getURL(); return url.openStream(); }
InputStream getInputStream() throws IOException { return new FileInputStream(file); }
if (file.isDirectory()) { URL url = getURL(); try { URLConnection connection = url.openConnection(); return connection.getContentLength(); } catch (IOException e) { return -1; } }
public int getLength() { return (int) file.length(); }
if (file.exists() && ! file.isDirectory())
if (file.exists())
Resource getResource(String name) { File file = new File(dir, name); if (file.exists() && ! file.isDirectory()) return new FileResource(this, name, file); return null; }
Manifest manifest; Attributes attributes; String classPathString; if ((manifest = jarfile.getManifest()) != null && (attributes = manifest.getMainAttributes()) != null && ((classPathString = attributes.getValue(Attributes.Name.CLASS_PATH)) != null)) { this.classPath = new Vector(); StringTokenizer st = new StringToke...
public JarURLLoader(URLClassLoader classloader, URL baseURL) { super(classloader, baseURL); // Cache url prefix for all resources in this jar url. String external = baseURL.toExternalForm(); StringBuffer sb = new StringBuffer(external.length() + 6); sb.append("jar:"); sb.append(exte...
this.classloader = classloader; this.baseURL = baseURL; this.noCertCodeSource = new CodeSource(baseURL, null);
this(classloader, baseURL, baseURL);
URLLoader(URLClassLoader classloader, URL baseURL) { this.classloader = classloader; this.baseURL = baseURL; this.noCertCodeSource = new CodeSource(baseURL, null); }
urls.add(newUrl);
protected void addURL(URL newUrl) { addURLImpl(newUrl); }
urls.add(newUrl);
private void addURLImpl(URL newUrl) { synchronized (urlloaders) { if (newUrl == null) return; // Silently ignore... // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loader == null) { String file = newUrl.ge...
Vector extraUrls = loader.getClassPath(); if (extraUrls != null) { Iterator it = extraUrls.iterator(); while (it.hasNext()) { URL url = (URL)it.next(); URLLoader extraLoader = (URLLoader) urlloaders.get(url); if (! urlinfos.contains (extraLoader)) addURLImpl(url); } }
private void addURLImpl(URL newUrl) { synchronized (urlloaders) { if (newUrl == null) return; // Silently ignore... // Check global cache to see if there're already url loader // for this url. URLLoader loader = (URLLoader) urlloaders.get(newUrl); if (loader == null) { String file = newUrl.ge...
addURLImpl(newUrls[i]);
addURL(newUrls[i]);
private void addURLs(URL[] newUrls) { for (int i = 0; i < newUrls.length; i++) addURLImpl(newUrls[i]); }
throw new ClassNotFoundException(className + " not found in " + urls);
throw new ClassNotFoundException(className + " not found in " + this);
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
throw new ClassNotFoundException(className, ioe);
ClassNotFoundException cnfe; cnfe = new ClassNotFoundException(className + " not found in " + this); cnfe.initCause(ioe); throw cnfe;
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; Resource resource = findURLResource(resourceName); if (resource == null) throw new ClassNotFou...
int max = urls.size();
int max = urlinfos.size();
public Enumeration findResources(String resourceName) throws IOException { Vector resources = new Vector(); int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader) urlinfos.elementAt(i); Resource resource = loader.getResource(resourceName); if (resource != null) resou...
int max = urls.size();
int max = urlinfos.size();
private Resource findURLResource(String resourceName) { int max = urls.size(); for (int i = 0; i < max; i++) { URLLoader loader = (URLLoader) urlinfos.elementAt(i); if (loader == null) continue; Resource resource = loader.getResource(resourceName); if (resource != null) return resource; } ret...
public void prepare()
public void prepare() throws Exception
public void prepare() { state = STATE_PREPARED; }
if (xid != null) { if (insertedTXRecord) { pm.prepareTx(this); } }
public void prepare() { state = STATE_PREPARED; }
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException {
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException {
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(Ab...
Object o = engine.eval(source, row, col, script);
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(Ab...
return o;
return engine.eval(source, row, col, script);
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String language = (String) args.get(AbstractWorkflow.BSF_LANGUAGE); String source = (String) args.get(AbstractWorkflow.BSF_SOURCE); int row = TextUtils.parseInt((String) args.get(Ab...
executor, null);
executor);
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getQueuePostOfficeInstance(); destination.setPostOffice(postOffice); //Binding must be added before destination is register...
postOffice.bindQueue(destination.getName(), destination.getName(), q);
postOffice.bindQueue(destination.getName(), destination.getName(), null, q);
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getQueuePostOfficeInstance(); destination.setPostOffice(postOffice); //Binding must be added before destination is register...
ServerManagement.start("all", 0);
ServerManagement.start(0, "all");
public void testDefaultFailoverMap() throws Exception { { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate();...
ServerManagement.start("all", 1);
ServerManagement.start(1, "all");
public void testDefaultFailoverMap() throws Exception { { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate();...
log.info("************ KILLING (CRASHING) SERVER 1");
log.info("######"); log.info("###### KILLING (CRASHING) SERVER 1"); log.info("######");
public void testFailoverWithUnackedMessagesClientAcknowledge() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(...
ServerManagement.spawn(1);
ServerManagement.start(1, "all");
public void testFailoverWithUnackedMessagesClientAcknowledge() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(...
boolean killed = false;
public void testSimpleFailover() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(); Set nodeIDView = Serve...
log.info("************ KILLING (CRASHING) SERVER 1");
log.info("######"); log.info("###### KILLING (CRASHING) SERVER 1"); log.info("######");
public void testSimpleFailover() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(); Set nodeIDView = Serve...
killed = true;
public void testSimpleFailover() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(); Set nodeIDView = Serve...
log.info("message is " + tm);
log.debug("message is " + tm);
public void testSimpleFailover() throws Exception { JBossConnectionFactory factory = (JBossConnectionFactory )ic[0].lookup("/ConnectionFactory"); ClusteredClientConnectionFactoryDelegate delegate = (ClusteredClientConnectionFactoryDelegate)factory.getDelegate(); Set nodeIDView = Serve...