rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public TableCellEditor getCellEditor()
public TableCellEditor getCellEditor(int row, int column)
public TableCellEditor getCellEditor() { return cellEditor; }
return cellEditor;
TableCellEditor editor = columnModel.getColumn(column).getCellEditor(); if (editor == null) editor = getDefaultEditor(dataModel.getColumnClass(column)); return editor;
public TableCellEditor getCellEditor() { return cellEditor; }
if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); }
if (trace) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); }
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n...
if (log.isTraceEnabled()) { log.trace("added an Add callback to transaction " + tx); }
if (trace) { log.trace("added an Add callback to transaction " + tx); }
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n...
BasicConfigurator.configure(); log.info("Configured");
public MessagingTestCase(String name) { super(name); org.apache.log4j.Logger jboss = org.apache.log4j.Logger.getLogger("org.jboss"); jboss.setLevel(XLevel.ALL); }
menuItem.setOpaque(true);
protected void installDefaults() { LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.get...
if (path[i].equals(oldSelectedItem))
if ((i + 1) < path.length && path[i + 1].equals(oldSelectedItem))
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
public VmType getComponentType() {
public VmType<?> getComponentType() {
public VmType getComponentType() { return componentType; }
return 0;
float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align;
public float getAlignment(int axis) { return 0; }
return null;
if (comp == null) comp = createComponent(); return comp;
public final Component getComponent() { return null; }
return 0;
float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span;
public float getMaximumSpan(int axis) { return 0; }
return 0;
float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span;
public float getMinimumSpan(int axis) { // TODO: Implement this properly. return 0; }
throw new AssertionError("Not implemented yet.");
throw new AssertionError("Not yet implemented");
public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { // TODO: Implement this properly. throw new AssertionError("Not implemented yet."); }
return 0;
float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span;
public float getPreferredSpan(int axis) { // TODO: Implement this properly. return 0; }
return null;
Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(); Component c = getComponent(); return new Rectangle(r.x, r.y, c.getWidth(), c.getHeight());
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // TODO: Implement this properly. return null; }
Rectangle r = a.getBounds(); getComponent().setBounds(r.x, r.y, r.width, r.height);
public void paint(Graphics g, Shape a) { // TODO: Implement this properly. }
public void setParent(View p)
public void setParent(final View p) { if (SwingUtilities.isEventDispatchThread()) setParentImpl(p); else SwingUtilities.invokeLater (new Runnable() { public void run()
public void setParent(View p) { // TODO: Implement this properly. }
setParentImpl(p); } });
public void setParent(View p) { // TODO: Implement this properly. }
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Element el = getElement(); return el.getStartOffset(); }
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // TODO: Implement this properly. return 0; }
children = new View[0];
public View(Element elem) { elt = elem; }
if (isOpaque()) s.add(AccessibleState.OPAQUE);
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet s = new AccessibleStateSet(); if (Component.this.isEnabled()) s.add(AccessibleState.ENABLED); if (isFocusable()) s.add(AccessibleState.FOCUSABLE); if (isFocusOwner()) s.add(AccessibleState.FOCUSED); if (isOpaque()) s.add...
public void ancestorAdded(AncestorEvent event);
void ancestorAdded(AncestorEvent event);
public void ancestorAdded(AncestorEvent event);
boolean contains(JComponent c, int x, int y) { return c.inside(x,y); }
public boolean contains(JComponent c, int x, int y) { return (x >= 0) && (x < c.getWidth()) && (y >= 0) && (y < c.getHeight()); }
boolean contains(JComponent c, int x, int y) { return c.inside(x,y); }
public EventListener[] getListeners(Class c) {
public EventListener[] getListeners(Class c) { int count, f; EventListener[] result;
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde...
int count; EventListener[] list; String name; int index; count = getListenerCount(c); list = new EventListener[count]; count = 0; name = c.getName(); for (index = 0; index < listenerList.length; index += 2) { if (((Class) listenerList[index]).getName().equals(name) == true) { list[count] = (EventList...
count = getListenerCount(c); result = (EventListener[]) Array.newInstance(c, count); f = 0; for (int i = 0; i < listenerList.length; i += 2) if (listenerList[i] == c) result[f++] = (EventListener) listenerList[i + 1]; return result; }
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde...
public Point getLocation(Point p)
public Point getLocation()
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; }
if (p == null) p = new Point(); p.x = x; p.y = y; return p;
return location ();
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; }
setClip(Shape clip);
setClip(int x, int y, int width, int height);
setClip(Shape clip);
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c);
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(), c.getHeight());
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); }
paint(g, c); }
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); }
set.addAll(Arrays.asList(parent.allKeys()));
{ Object[] parentKeys = parent.allKeys(); if (parentKeys != null) set.addAll(Arrays.asList(parentKeys)); }
public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) set.addAll(Arrays.asList(parent.allKeys())); set.addAll(inputMap.keySet()); if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size()]; return (KeyStroke[]) set.toArray(array); }
waitForOnMessageToComplete(); if (!buffer.isEmpty()) { List cancels = new ArrayList(); for(Iterator i = buffer.iterator(); i.hasNext();) { MessageProxy mp = (MessageProxy)i.next(); DefaultCancel ack = new DefaultCancel(mp.getDeliveryId(), mp.getDeliveryCount()); cancels.add(ack); } sessionDelegate.can...
waitForOnMessageToComplete();
public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ...
if (trace) { log.trace("InterruptedException, " + this + ".getMessage() returning " + m); }
if (trace) { log.trace(this + ".getMessage() returning " + m); }
private MessageProxy getMessage(long timeout) throws JMSException { if (timeout == -1) { // receiveNoWait so don't wait } else { try { if (timeout == 0) { // wait for ever potentially while (!closed...
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID)
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID, SessionDelegate connectionConsumerSession)
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; }
this.connectionConsumerSession = connectionConsumerSession;
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; }
e.printStackTrace();
protected void run() { try { log.info("Starting perfcharter"); setUp(); writer.write("<html><body>\n"); doCharts(); writer.write("</body></html>\n"); tearDown(); log.info("Done"); } cat...
public FileOutputStream (File file)
public FileOutputStream (String path, boolean append)
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); }
this (file, false);
this (new File(path), append);
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); }
InlineBorder(int y, int height, RectPropertySet margin, Border border, RectPropertySet padding, CalculatedStyle style, LineMetrics lm, Color background_color) {
InlineBorder(int y, int height, RectPropertySet margin, BorderPropertySet border, RectPropertySet padding, CalculatedStyle style, LineMetrics lm, Color background_color) {
InlineBorder(int y, int height, RectPropertySet margin, Border border, RectPropertySet padding, CalculatedStyle style, LineMetrics lm, Color background_color) { this.y = y; this.height = height; this.margin = margin; this.border = border; this.padding = padding; this.style ...
int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y;
int ty = line.getBaseline() - y - height - (int)margin.top() - (int)border.top() - (int)padding.top() + line.y;
void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate(0, ty)...
height + border.top + (int)padding.top() + (int)padding.bottom() + border.bottom);
height + (int)border.top() + (int)padding.top() + (int)padding.bottom() + (int)border.bottom());
void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate(0, ty)...
if ( CSSName.propertyInherits(propName) && _parent != null ) { prop = _parent.propertyByName(propName).copyForInherit();
if ( CSSName.propertyInherits(propName) && _parent != null && (prop = _parent.propertyByName(propName)) != null) { prop = prop.copyForInherit();
public DerivedProperty propertyByName( String propName ) { // HERE: when we get the property, check if it is resolved // if not, call resolve() and pass it our parent's reference // or just our XRElement DerivedProperty prop = (DerivedProperty)_derivedPropertiesByName.get( propName ); ...
if ( !( cssValue instanceof CSSPrimitiveValue )) return false;
if ( !( cssValue.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE )) return false;
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati...
switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) {
switch ( type ) {
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati...
case CSSPrimitiveValue.CSS_IDENT:
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati...
System.out.println(cssValue.getCssText() + ", returning false");
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati...
log.info("Invalid port or no port specified");
log.error("Invalid port or no port specified");
public static void main(String[] args) { log.info("Slave starting"); int port; try { port = Integer.parseInt(args[0]); } catch (Exception e) { log.info("Invalid port or no port specified"); return; } new Slave().run(port); }
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString());
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/common-actions.xml").toString());
public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { ...
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions-bad.xml").toString());
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/invalid/common-actions-bad.xml").toString());
public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { ...
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/duplicate-action.xml").toString());
WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/invalid/duplicate-action.xml").toString());
public void testDuplicateActionID() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/duplicate-action.xml").toString()); descriptor.validate(); fail("descriptor loaded successfully, even t...
db.setErrorHandler(new WorkflowLoader.WorkflowErrorHandler(new URL(url)));
public static WorkflowDescriptor getDescriptor(String url) throws Exception { File file = new File(new URL(url).getFile()); if (!file.exists()) { throw new IllegalArgumentException("file " + file + " does not exist"); } DocumentBuilderFactory dbf = DocumentBuilderFactory.newIn...
} catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
if(getIndex != null) { if(setIndexName != null) { try {
} if(getIndex != null) { if(setIndexName != null) { try {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
if(!setIndex.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException(setIndexName + " has non-void return type");
if(!setIndex.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException(setIndexName + " has non-void return type"); } } catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
} else if(setIndexName != null) {
else if(setIndexName != null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
&& (current.getParameterTypes()[0]).equals(java.lang.Integer.TYPE) && current.getReturnType().equals(java.lang.Void.TYPE)) { if(setIndex != null) { throw new IntrospectionException("Multiple, different set methods found that fit the bill!"); } else {
&& (current.getParameterTypes()[0]) .equals(java.lang.Integer.TYPE) && current.getReturnType().equals(java.lang.Void.TYPE)) { if(setIndex != null) { throw new IntrospectionException("Multiple, different " + "set methods found that fit the bill!"); } else {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
if(setIndex == null) { throw new IntrospectionException("Cannot find get or set methods.");
if(setIndex == null) { throw new IntrospectionException("Cannot find get or set " + "methods."); }
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
} else {
else {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
} catch(SecurityException E) { throw new IntrospectionException("SecurityException while trying to find methods.");
catch(NoSuchMethodException E) { } } catch(SecurityException E) { throw new IntrospectionException("SecurityException while trying to " + "find methods.");
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge...
for (int i = offset; i < len; i++)
int endOffset = offset + len; for (int i = offset; i < endOffset; i++)
public int charsWidth(char[] buf, int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return total_width; }
public BorderLayout(int hgap, int vgap)
public BorderLayout()
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; }
this.hgap = hgap; this.vgap = vgap;
this(0,0);
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; }
public JButton(Icon icon)
public JButton()
public JButton(Icon icon) { this(null, icon); }
this(null, icon);
this(null, null);
public JButton(Icon icon) { this(null, icon); }
void start()
public void start()
void start() { if (isRunning()) { System.err.println("attempt to start a running timer"); return; } new Waker().start(); }
void stop()
public void stop()
void stop() { running = false; }
m.doBeforeReceipt();
protected JBossMessage getMessage(long timeout) throws InterruptedException, JMSException { JBossMessage m = null; //If it's receiveNoWait then get the message directly if (timeout == -1) { waiting = false; m = (JBossMessage)getMessageNow(); } ...
public void redeliver(Receiver receiver)
public boolean redeliver(Receiver receiver)
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; }
log.trace("");
log.debug("redeliver(" + receiver + ")");
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; }
return false;
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; }
public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function);
public ConditionDescriptor createConditionDescriptor() { return new ConditionDescriptor();
public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function); }
public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element);
public ConditionsDescriptor createConditionsDescriptor() { return new ConditionsDescriptor();
public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element); }
public void println(String str)
public void println()
public void println(String str) { synchronized (lock) { print(str); println(); } }
print(str); println();
try { write(line_separator, 0, line_separator.length); if (autoflush) out.flush(); } catch (IOException ex) { error = true; }
public void println(String str) { synchronized (lock) { print(str); println(); } }
NodeList attributs = action.getElementsByTagName("meta"); for (int i = 0; i < attributs.getLength(); i++) { Element meta = (Element) attributs.item(i);
NodeList children = action.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = (Node) children.item(i); if (child.getNodeName().equals("meta")) { Element meta = (Element) child;
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
}
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi...
public ValidatorDescriptor(Element validator) { init(validator);
public ValidatorDescriptor() {
public ValidatorDescriptor(Element validator) { init(validator); }
public FunctionDescriptor(Element function) { init(function);
public FunctionDescriptor() {
public FunctionDescriptor(Element function) { init(function); }
public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult);
public ConditionalResultDescriptor() {
public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult); }
public ResultDescriptor(Element result) { init(result);
public ResultDescriptor() {
public ResultDescriptor(Element result) { init(result); }
public RestrictionDescriptor(Element restriction) { init(restriction);
public RestrictionDescriptor() {
public RestrictionDescriptor(Element restriction) { init(restriction); }
if (conditions.size() == 0) {
ConditionsDescriptor conditions = getConditionsDescriptor(); List list = conditions.getConditions(); if (list.size() == 0) {
public void writeXML(PrintWriter out, int indent) { if (conditions.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsD...
if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsDescriptor condition = (ConditionsDescriptor) conditions.get(i); condition.writeXML(out, indent); } }
conditions.writeXML(out, indent++);
public void writeXML(PrintWriter out, int indent) { if (conditions.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsD...
out.println("<function " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + getName() + "\" ") : "") + "type=\"" + type + "\">");
out.println("<function " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + XMLUtil.encode(getName()) + "\" ") : "") + "type=\"" + type + "\">");
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<function " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + getName() + "\" ") : "") + "type=\"" + type + "\">"); Iterator iter = args.en...
if (dueDate != null) {
if (dueDate != null && dueDate.length() > 0) {
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null) { buf.append(...
if (dueDate != null) {
if (dueDate != null && dueDate.length() > 0) {
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<unconditional-result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null) { ...
if (master.getStyle().isFixed()) {
if (master.getStyle().isFixed() || master.getStyle().isAlternateFlow()) {
public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = getLayer(); if (master.getStyle().isFixed()) { while (parent.getP...
c.translate(-padding_xoff,0);
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics, boolean restyle) { restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != null) { for (Iterator i = ib.pushstyl...
c.translate(-padding_xoff, ty);
c.translate(0,ty);
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty...
c.translate(+padding_xoff, -ty);
c.translate(0,-ty);
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty...
private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()];
public CascadedStyle(java.util.Iterator iter) { this(); java.util.List[] buckets = new java.util.List[PropertyDeclaration.IMPORTANCE_AND_ORIGIN_COUNT]; for (int i = 0; i < buckets.length; i++) { buckets[i] = new java.util.LinkedList(); } while (iter.hasNext()) { PropertyDeclaration prop = (PropertyDeclaration) iter...
private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()]; }
durable2.close();
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(f...
durable2.close();
public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.set...
durable.close();
public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); ...
int textAlign = getTextAlign(c, line);
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
c.translate(line.x + textAlign,
c.translate(line.x,
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
c.translate(-line.x - textAlign,
c.translate(-line.x,
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
int lx = line.x + getTextAlign(c, line);
if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x;
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y int lx = line.x + getTextAlign(c, line); //Uu.p("getting the text align for line: " + line); //Uu.p("getTextAlign = " + getTextAlign(c,line))...
public static void justifyLine(Context c, LineBox line, Element elem, int width) {
public static void justifyLine(Context c, LineBox line, int width) {
public static void justifyLine(Context c, LineBox line, Element elem, int width) { if (line.width > width) { return; } //u.p("line width = " + line.width); //u.p("available width = " + width); //u.p("inlines = " + line.getChildCount()); //u.p("word count = " + wo...
activationLock = new Object();
public MessageCallbackHandler(boolean isCC, int ackMode, QueuedExecutor onMessageExecutor, PooledExecutor activateConsumerExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID) { buffer = new LinkedList(); isConnectionC...