rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
Message m2 = (Message)newcons.receive(3000);
Message m2 = (Message)newcons.receiveNoWait();
public void testPersistentMessagesForTopicDropped() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); pub.setDeliveryMo...
TextMessage m2 = (TextMessage)sub.receive(3000);
TextMessage m2 = (TextMessage)sub.receiveNoWait();
public void testPersistentMessagesForTopicDropped2() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); conn.start(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); ...
Message m3 = (Message)newcons.receive(3000);
Message m3 = (Message)newcons.receiveNoWait();
public void testPersistentMessagesForTopicDropped2() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); conn.start(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); ...
TextMessage m2 = (TextMessage)cons.receive(3000);
TextMessage m2 = (TextMessage)cons.receiveNoWait();
public void testRollbackRecover() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); TopicSubscriber cons = sess.createS...
m2 = (TextMessage)cons.receive(3000);
m2 = (TextMessage)cons.receiveNoWait();
public void testRollbackRecover() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); TopicSubscriber cons = sess.createS...
TextMessage m4 = (TextMessage)newcons.receive(3000);
TextMessage m4 = (TextMessage)newcons.receiveNoWait();
public void testRollbackRecover() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); TopicSubscriber cons = sess.createS...
TextMessage m5 = (TextMessage)newcons.receive(3000);
TextMessage m5 = (TextMessage)newcons.receiveNoWait();
public void testRollbackRecover() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); TopicSubscriber cons = sess.createS...
TextMessage m6 = (TextMessage)newcons.receive(3000);
TextMessage m6 = (TextMessage)newcons.receiveNoWait();
public void testRollbackRecover() throws Exception { TopicConnection conn = null; try { conn = cf.createTopicConnection(); TopicSession sess = conn.createTopicSession(true, 0); TopicPublisher pub = sess.createPublisher(topic); TopicSubscriber cons = sess.createS...
c.setExtents(new Rectangle(oe));
public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); //block.x = c.getExtents().x; //block.y = c.getExtents().y; // save height incase fixed height int original_hei...
c.setExtents(new Rectangle(c.getExtents()));
public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); //block.x = c.getExtents().x; //block.y = c.getExtents().y; // save height incase fixed height int original_hei...
public static int fontXHeightForElement(Context context, Element elem) { return lineHeight(context, elem);
public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context, style);
public static int fontXHeightForElement(Context context, Element elem) { return lineHeight(context, elem); }
CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode())); return getFont(c, style, box.getNode());
CalculatedStyle style = c.css.getStyle(box.getRealElement()); return getFont(c, style);
public static Font getFont(Context c, InlineBox box) { if (box.getFont() != null) { return box.getFont(); } CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode())); return getFont(c, style, box.getNode()); }
CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode()));
CalculatedStyle style = c.css.getStyle(box.getRealElement());
public static Rectangle2D getTextBounds(Context c, InlineBox box) { CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode())); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style, box.getNode()), box.getSubstring()); }
getFont(c, style, box.getNode()), box.getSubstring());
getFont(c, style), box.getSubstring());
public static Rectangle2D getTextBounds(Context c, InlineBox box) { CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(box.getNode())); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style, box.getNode()), box.getSubstring()); }
public static int len(Context c, Node node, String str, Font font) {
public static int len(Context c, String str, Font font) {
public static int len(Context c, Node node, String str, Font font) { //return c.getGraphics().getFontMetrics( font ).stringWidth( str ); return (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), font, str).getWidth()); }
public static int lineHeight(Context c, Node node) { CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node)); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style, node), "Test").getHeight()); Element elem = null; if (node instanceof Element) { elem = (Element) ...
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEIGHT, val);
public static int lineHeight(Context c, Node node) { //int val = c.getGraphics().getFontMetrics( getFont( c, node ) ).getHeight(); CalculatedStyle style = c.css.getStyle(LineBreaker.getElement(node)); int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, sty...
file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace();
StringBuffer sbURI = GeneralUtil.htmlEscapeSpace(uri); XRLog.general("Encoded URI: " + sbURI); file = new File(new URI(sbURI.toString())); } catch (URISyntaxException e) { XRLog.exception("Invalid file URI " + uri, e); return getNotFoundDocument(uri);
public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri != null && uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change ...
String notFound = "<h1>Document not found</h1>"; xr = XMLResource.load(new StringReader(notFound));
xr = getNotFoundDocument(uri);
public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri != null && uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change ...
if (!short_url.startsWith("/")) { short_url = "/" + short_url; } ref = marker.getClass().getResource(short_url); Uu.p("ref = " + ref); } else if (uri.startsWith("demoNav:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring("demoNav:".length());
public String resolveURI(String uri) { URL ref = null; if (uri == null) return baseUrl; if (uri.trim().equals("")) return baseUrl;//jar URLs don't resolve this right if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substrin...
public void setBaseURL(String url) {
public void setBaseURL (String url) { if(baseUrl !=null && baseUrl.startsWith("error:")) baseUrl = null;
public void setBaseURL(String url) { baseUrl = resolveURI(url); if (baseUrl == null) baseUrl = "error:FileNotFound"; //setBaseURL is called by view when document is loaded if (index >= 0) { String historic = (String) history.get(index); if (historic.equals(baseUrl))...
final String cmdLine = System.getProperty("jnode.cmdline", "");
final String cmdLine = (String)AccessController.doPrivileged(new GetPropertyAction("jnode.cmdline", ""));
public void run() { // Run commands from the JNode commandline first final String cmdLine = System.getProperty("jnode.cmdline", ""); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { final String e = tok.nextToken(); try { if (e.startsWith("cmd=")) { final String cm...
c.fill = c.HORIZONTAL;
c.fill = GridBagConstraints.HORIZONTAL;
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ...
c.fill = c.BOTH;
c.fill = GridBagConstraints.BOTH;
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ...
scroll.setVerticalScrollBarPolicy(scroll.VERTICAL_SCROLLBAR_ALWAYS); scroll.setHorizontalScrollBarPolicy(scroll.HORIZONTAL_SCROLLBAR_ALWAYS);
scroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
public void init() { forward = new JButton(); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new XHTMLPanel(); font_inc = new JButton("A"); font_dec = new JButton("a"); Renderin...
threadPool = new PooledExecutor(new LinkedQueue(), 20); threadPool.setMinimumPoolSize(20);
threadPool = new PooledExecutor(new LinkedQueue(), 100); threadPool.setMinimumPoolSize(100);
public synchronized void start() throws Exception { try { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); ...
return new DefaultModuleRevision(this, systemMd, searched, downloaded);
data.getIvy().saveArtResolver(data.getCache(), systemMd, getName()); return new DefaultModuleRevision(this, this, systemMd, searched, downloaded);
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa...
} public DependencyResolver getArtifactResolver() { return rmr.getArtifactResolver();
protected ResolvedModuleRevision searchedRmr(final ResolvedModuleRevision rmr) { // delegate all to previously found except isSearched return new ResolvedModuleRevision() { public boolean isSearched() { return true; } public b...
if (uri == null) return false;
public boolean isVisited(String uri) { uri = resolveURI(uri); return history.contains(uri); }
URL base = new URL(baseUrl);
URL base; if (baseUrl == null || baseUrl.length() == 0) { base = new File(".").toURL(); } else { base = new URL(baseUrl); }
public String resolveURI(String uri) { URL ref = null; if (uri.trim().equals("")) return baseUrl;//jar URLs don't resolve this right if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring(5); if (!short_url.startsWi...
namingDelegate = new NamingDelegateImpl();
namingDelegate = new RMINamingDelegate();
public RMIServer(boolean remote) throws Exception { super(); this.remote = remote; if (remote) { namingDelegate = new NamingDelegateImpl(); } }
private NamingDelegateImpl getNamingDelegate()
private RMINamingDelegate getNamingDelegate()
private NamingDelegateImpl getNamingDelegate() { return namingDelegate; }
Unsafe.debug("Starting Application Processor " + cpu.getIdString());
Unsafe.debug("Starting Application Processor " + cpu.getIdString() + "\n");
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cpu.syste...
Unsafe.debug("Running normal threads on " + cpu.getIdString());
Unsafe.debug("Running normal threads on " + cpu.getIdString() + "\n");
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cpu.syste...
return this.apic;
return this.localAPIC;
final LocalAPIC getApic() { return this.apic; }
for (int i = 0, len = nl.getLength(); i < len; i++) { StringBuffer style = new StringBuffer(); org.w3c.dom.Element elem = (org.w3c.dom.Element) nl.item(i); String m = elem.getAttribute("media"); if ("".equals(m)) { m = "all"; } StylesheetInfo info = new StylesheetInfo(); info.setMedia(m); info.setType(elem.getAttribute...
if (nl != null) { for (int i = 0, len = nl.getLength(); i < len; i++) { StringBuffer style = new StringBuffer(); org.w3c.dom.Element elem = (org.w3c.dom.Element) nl.item(i); String m = elem.getAttribute("media"); if ("".equals(m)) { m = "all"; } StylesheetInfo info = new StylesheetInfo(); info.setMedia(m); info.setType...
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty...
InlineStyleInfo isi = new InlineStyleInfo(); isi.setInfo(info); isi.setStyle(style.toString()); list.add(isi);
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty...
for (int i = 0, len = nl.getLength(); i < len; i++) { Element link = (Element) nl.item(i); if (!link.getAttribute("rel").equals("stylesheet")) { continue; } StylesheetInfo info = new StylesheetInfo(); info.setOrigin(StylesheetInfo.AUTHOR); String a = link.getAttribute("rel"); if (a.indexOf("alternate") != -1) { continu...
if (nl != null) { for (int i = 0, len = nl.getLength(); i < len; i++) { Element link = (Element) nl.item(i); if (!link.getAttribute("rel").equals("stylesheet")) { continue; } StylesheetInfo info = new StylesheetInfo(); info.setOrigin(StylesheetInfo.AUTHOR); String a = link.getAttribute("rel"); if (a.indexOf("alternate"...
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) StylesheetInfo[] refs = super.getStylesheetLinks(doc); list.addAll(java.util.Arrays.asList(refs)); //get the link eleme...
mid = (low + hi) >> 1;
mid = (low + hi) >>> 1;
public static int binarySearch(byte[] a, byte key) { int low = 0; int hi = a.length - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >> 1; final byte d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // This...
public boolean getEstimatedMajorSpan()
protected boolean getEstimatedMajorSpan()
public boolean getEstimatedMajorSpan() { return estimatedMajorSpan; }
public void setEstimatedMajorSpan(boolean estimated)
protected void setEstimatedMajorSpan(boolean estimated)
public void setEstimatedMajorSpan(boolean estimated) { estimatedMajorSpan = estimated; }
public TreeNode[] getPathToRoot(TreeNode value0)
public TreeNode[] getPathToRoot(TreeNode node)
public TreeNode[] getPathToRoot(TreeNode value0) { return null; // TODO }
return null;
return getPathToRoot(node, 0);
public TreeNode[] getPathToRoot(TreeNode value0) { return null; // TODO }
public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2)
public void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index)
public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2) { // TODO }
parent.insert(newChild, index); int[] childIndices = new int[1]; childIndices[0] = index; nodesWereInserted(parent, childIndices);
public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2) { // TODO }
public void nodeChanged(TreeNode value0)
public void nodeChanged(TreeNode node)
public void nodeChanged(TreeNode value0) { // TODO }
TreeNode parent = node.getParent(); int[] childIndices = new int[1]; childIndices[0] = getIndexOfChild(parent, node); Object[] children = new Object[1]; children[0] = node; fireTreeNodesChanged(this, getPathToRoot(parent), childIndices, children);
public void nodeChanged(TreeNode value0) { // TODO }
public void nodeStructureChanged(TreeNode value0)
public void nodeStructureChanged(TreeNode node)
public void nodeStructureChanged(TreeNode value0) { // TODO }
public void nodesChanged(TreeNode value0, int[] value1)
public void nodesChanged(TreeNode node, int[] childIndices)
public void nodesChanged(TreeNode value0, int[] value1) { // TODO }
Object[] children = new Object[childIndices.length]; for (int i = 0; i < children.length; i++) children[i] = getChild(node, childIndices[i]); fireTreeNodesChanged(this, getPathToRoot(node), childIndices, children);
public void nodesChanged(TreeNode value0, int[] value1) { // TODO }
public void nodesWereInserted(TreeNode value0, int[] value1)
public void nodesWereInserted(TreeNode parent, int[] childIndices)
public void nodesWereInserted(TreeNode value0, int[] value1) { // TODO }
Object[] children = new Object[childIndices.length]; for (int i = 0; i < children.length; i++) children[i] = getChild(parent, childIndices[i]); fireTreeNodesInserted(this, getPathToRoot(parent), childIndices, children);
public void nodesWereInserted(TreeNode value0, int[] value1) { // TODO }
public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2)
public void nodesWereRemoved(TreeNode parent, int[] childIndices, Object[] removedChildren)
public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2) { // TODO }
fireTreeNodesRemoved(this, getPathToRoot(parent), childIndices, removedChildren);
public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2) { // TODO }
public void removeNodeFromParent(MutableTreeNode value0)
public void removeNodeFromParent(MutableTreeNode node)
public void removeNodeFromParent(MutableTreeNode value0) { // TODO }
TreeNode parent = node.getParent(); Object[] children = new Object[1]; children[0] = node; int[] childIndices = new int[1]; childIndices[0] = getIndexOfChild(parent, node); node.removeFromParent(); nodesWereRemoved(parent, childIndices, children);
public void removeNodeFromParent(MutableTreeNode value0) { // TODO }
public void valueForPathChanged(TreePath value0, Object value1)
public void valueForPathChanged(TreePath path, Object newValue)
public void valueForPathChanged(TreePath value0, Object value1) { // TODO }
if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesChanged(event); }
public void valueForPathChanged(TreePath value0, Object value1) { // TODO }
{
{ if (log.isTraceEnabled()) { log.trace("Retreived it from memory cache"); }
public MessageReference getReference(Serializable messageID) { MessageReference ref = super.getReference(messageID); if (ref != null) { return ref; } Message m = null; try { m = pm.retrieve(messageID); } catch(Throwable t) { log.error("Persi...
if (log.isTraceEnabled()) { log.trace("Persisted message " + r); }
public MessageReference reference(Routable r) throws Throwable { if (r.isReference() || !r.isReliable()) { return super.reference(r); } // is reliable if (log.isTraceEnabled()) { log.trace("Persisting message " + r); } pm.store((Message)r); return new SoftMessageReference...
String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]);
log.info("Getting invokerlocator for " + connectorName); String s = (String)mbeanServer.getAttribute(connectorName, "InvokerLocator");
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (fea...
public static boolean requiresBidi(char[] text, int start, int limit) {
public static boolean requiresBidi(char[] text, int start, int end) { final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT; for (int i = start; i < end; i++) { char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT) return true; }
public static boolean requiresBidi(char[] text, int start, int limit) { // TODO implement me return false; }
int r1a = r1.width * r1.height; int r2a = r2.width * r2.height; int ua = union.width * union.height; if (ua > (r1a+r2a)*2) return null;
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.hei...
Event oldEvent = translateEvent(e); if (oldEvent != null) postEvent (oldEvent);
public final void dispatchEvent(AWTEvent e) { // Some subclasses in the AWT package need to override this behavior, // hence the use of dispatchEventImpl(). dispatchEventImpl(e); }
Event oldEvent = translateEvent (e);
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusE...
if (oldEvent != null) postEvent (oldEvent);
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusE...
Component target = (Component) e.getSource ();
Object target = e.getSource ();
static Event translateEvent (AWTEvent e) { Component target = (Component) e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int...
public Action[] getActions()
protected Action[] getActions()
public Action[] getActions() { return super.getActions(); }
u.p("normalizing: " + prop);
private void expandProperty(String prop, CSSStyleRule rule) { if(prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(v...
u.p("test = " + test);
private boolean isColor(String test) { if(color_map.containsKey(test)) { return true; } u.p("test = " + test); if(test.indexOf("rgb") >=0) { return true; } return false; }
public ClientConnectionFactoryDelegate(String objectID, String serverLocatorURI)
public ClientConnectionFactoryDelegate(int objectID, String serverLocatorURI)
public ClientConnectionFactoryDelegate(String objectID, String serverLocatorURI) { super(objectID); this.serverLocatorURI = serverLocatorURI; }
id, PayloadKey.AS_IS);
Integer.valueOf(id), PayloadKey.AS_IS);
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, ...
InvocationResponse response = null;
Object ret = null;
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, ...
response = (InvocationResponse)client.invoke(invocation, null);
ret = client.invoke(invocation, null);
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, ...
invocation.setResponseContextInfo(response.getContextInfo());
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, ...
response = (InvocationResponse)connection.getInvokingClient().invoke(invocation, null); invocation.setResponseContextInfo(response.getContextInfo());
ret = client.invoke(invocation, null);
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, ...
ClientConnectionDelegate delegate = (ClientConnectionDelegate)response.getResponse();
ClientConnectionDelegate delegate = (ClientConnectionDelegate)ret;
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, ...
return response.getResponse();
return ret;
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, ...
return "ConnectionFactoryDelegate[" + Util.guidToString(id) + "]";
return "ConnectionFactoryDelegate[" + id + "]";
public String toString() { return "ConnectionFactoryDelegate[" + Util.guidToString(id) + "]"; }
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y)
protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y)
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); }
public int getLeftChildIndent(int newAmount)
public int getLeftChildIndent()
public int getLeftChildIndent(int newAmount) { return leftChildIndent; }
Color borderColor = defaults.getColor("InternalFrame.borderColor"); Border inner = BorderFactory.createLineBorder(borderColor, 1); Color borderDarkShadow = defaults.getColor ("InternalFrame.borderDarkShadow"); Color borderHighlight = defaults.getColor ("InternalFrame.borderHighlight"); Color borderShadow = defaults.get...
Border border = defaults.getBorder("InternalFrame.border");
protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default...
String actionId = commonAction.getAttribute("id"); WorkflowDescriptor wfDesc = (WorkflowDescriptor) (getParent());
WorkflowDescriptor workflowDescriptor = (WorkflowDescriptor) (getParent());
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi...
ActionDescriptor commonActionReference = (ActionDescriptor) wfDesc.getCommonActions().get(actionId);
Integer actionId = new Integer(commonAction.getAttribute("id")); ActionDescriptor commonActionReference = (ActionDescriptor) workflowDescriptor.getCommonActions().get(actionId);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi...
} catch (NumberFormatException nfe) {
this.commonActions.add(actionId); } catch (Exception ex) { log.warn("Invalid common actionId:" + ex);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi...
this.commonActions.add(actionId);
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi...
String s = (String) iter.next();
Object o = iter.next();
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In...
Integer actionId = new Integer(s);
Integer actionId = new Integer(o.toString());
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In...
throw new InvalidWorkflowDescriptorException("Common action " + s + " is not a valid action ID");
throw new InvalidWorkflowDescriptorException("Common action " + o + " is not a valid action ID");
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In...
String action = (String) commonActions.get(i); out.println("<common-action id=\"" + action + "\" />");
out.println("<common-action id=\"" + commonActions.get(i) + "\" />");
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); if (permissions.size() > 0) { ...
NodeList args = condition.getElementsByTagName("arg"); for(int l = 0; l < args.getLength(); l++)
List args = XMLUtil.getChildElements(condition, "arg"); for(int l = 0; l < args.size(); l++)
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg...
Element arg = (Element)args.item(l);
Element arg = (Element)args.get(l);
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg...
"bnds = " + x + "," + y + " - " + width + "Xx" + height +
"bnds = " + x + "," + y + " - " + width + "x" + height +
public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "Xx" + height + " start = " + this.start_index + " end = " + this.end_index; }
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics) {
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) {
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { ...
result = LineBreaker.generateReplacedInlineBox(c, content, avail, prev_align, curr_line, max_width, pendingBlockBox);
result = LineBreaker.generateReplacedInlineBox(c, content, avail, prev_align, curr_line, pendingBlockBox);
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
Breaker.breakText(c, inline, prev_align, avail, max_width, font);
Breaker.breakText(c, inline, prev_align, avail, font);
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
c.setFirstLine(true);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
adjustLineHeight(c, curr_line, new_inline, blockLineHeight, blockLineMetrics);
adjustLineHeight(c, curr_line, new_inline);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
c.setFirstLine(false);
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first...
Element p = (Element) root.getElementsByTagName("persistence").item(0); Element factoryElement = (Element) root.getElementsByTagName("factory").item(0);
Element p = XMLUtil.getChildElement(root, "persistence"); Element factoryElement = XMLUtil.getChildElement(root, "factory");
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...
NodeList args = p.getElementsByTagName("property");
List args = XMLUtil.getChildElements(p, "property");
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...