rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
cc.setLocation((int) origin.getX(), (int) origin.getY() + curr_line.y);
cc.setLocation((int) origin.getX(), (int) origin.getY());
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
c.translate(-box.x, -box.y);
c.translate(-box.x - curr_line.x, -box.y - curr_line.y);
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { //Uu.p("generating replaced Inline Box"); Rectangle bounds = null; BlockBox block = null; JComponent cc = c.getNamespaceHandler().getCustomComponent(content...
public String getNodeId();
public int getNodeId();
public String getNodeId();
private TableModel tableModel(Node node) throws Exception {
private TableModel tableModel(Node node) {
private TableModel tableModel(Node node) throws Exception { if (node.getNodeType() != Node.ELEMENT_NODE) { Toolkit.getDefaultToolkit().beep(); return _defaultTableModel; } Map props = _sr.getCascadedPropertiesMap((Element) node); return new PropertiesTabl...
outerBox.setMarginWidth(new Border(0, 0, 0, 0));
c.pushStyle(CascadedStyle.emptyCascadedStyle); outerBox.setStyle(new Style(c.getCurrentStyle(), 0, c.getCtx())); c.popStyle();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
tableBox.setMarginTopOverride(0f);
tableBox.getStyle().setMarginTopOverride(0f);
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
tableBox.setMarginBottomOverride(0f);
tableBox.getStyle().setMarginBottomOverride(0f);
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
tableBox.setMarginWidth(c, (float) oe.getWidth()); Border margin = tableBox.getMarginWidth();
Border margin = tableBox.getStyle().getMarginWidth();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm...
cell.setMarginWidth(c, c.getExtents().width);
cell.setStyle(new Style(c.getCurrentStyle(), (float) c.getExtents().width, c.getCtx()));
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); boolean hasSpecifiedHeight = !style.isIdent(CSSName.HEIGHT, IdentValue.AUTO); hasSpecifiedHeight = hasSpecifiedHeight && style.propertyByName(CSSName.HEIGHT).computedValue().hasAbsoluteUnit();
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
if (hasSpecifiedWidth) {
if (!cell.getStyle().isAutoWidth()) {
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
if (hasSpecifiedHeight) {
if (!cell.getStyle().isAutoHeight()) {
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
cell.auto_height = false;
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
if (cell.auto_height == false) {
if (!cell.getStyle().isAutoHeight()) {
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ...
row.setMarginWidth(c, (float) oe.getWidth());
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); row.s...
row.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c.getCtx()));
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); row.s...
ServerManagement.stopServerPeer();
public void testChangeDefaultJNDIContexts() throws Exception { ServerManagement.stopServerPeer(); ServerManagement.startServerPeer("0", "/here-go-queues", "/and-here-topics/etc/etc"); try { ServerManagement.deployQueue("SomeQueue"); ServerManagement.deployTopic("SomeTopic"); ...
y-=fm.getDescent();
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetric...
ServerManagement.stopServerPeer();
public void tearDown() throws Exception { ServerManagement.stopServerPeer(); super.tearDown(); }
catch(JBossJMSException e)
catch(MessagingJMSException e)
public void testNonContextAlreadyBound() throws Exception { ServerManagement.stopServerPeer(); initialContext.bind("/some-new-context", new Object()); try { ServerManagement.startServerPeer("0", "/some-new-context", null); fail("should throw exception"); } catch(JBossJ...
public Object getContent(Context c) {
public List getContent(Context c) {
public Object getContent(Context c) { return _inline; }
Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);
DefaultCancel cancel1 = new DefaultCancel(65654, 43); DefaultCancel cancel2 = new DefaultCancel(65765, 2);
public void testCancelDeliveries() throws Exception { long methodHash = 62365354; int objectId = 54321; List cancels = new ArrayList(); Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);...
assertEquals(JMSWireFormat.CANCEL_DELIVERIES, dis.readByte());
assertEquals(JMSWireFormat.CANCEL_LIST, dis.readByte());
public void testCancelDeliveries() throws Exception { long methodHash = 62365354; int objectId = 54321; List cancels = new ArrayList(); Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);...
Cancel rcancel1 = new Cancel();
long deliveryId = dis.readLong(); int deliveryCount = dis.readInt(); DefaultCancel rcancel1 = new DefaultCancel(deliveryId, deliveryCount);
public void testCancelDeliveries() throws Exception { long methodHash = 62365354; int objectId = 54321; List cancels = new ArrayList(); Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);...
Cancel rcancel2 = new Cancel(); rcancel1.read(dis); rcancel2.read(dis);
deliveryId = dis.readLong(); deliveryCount = dis.readInt(); DefaultCancel rcancel2 = new DefaultCancel(deliveryId, deliveryCount);
public void testCancelDeliveries() throws Exception { long methodHash = 62365354; int objectId = 54321; List cancels = new ArrayList(); Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);...
Cancel xack1 = (Cancel)list.get(0); Cancel xack2 = (Cancel)list.get(1);
DefaultCancel xack1 = (DefaultCancel)list.get(0); DefaultCancel xack2 = (DefaultCancel)list.get(1);
public void testCancelDeliveries() throws Exception { long methodHash = 62365354; int objectId = 54321; List cancels = new ArrayList(); Cancel cancel1 = new Cancel(65654, 43); Cancel cancel2 = new Cancel(65765, 2);...
DeliveryInfo info = new DeliveryInfo(proxy, 76762, 98982);
DeliveryInfo info = new DeliveryInfo(proxy, 76762, 98982, null);
public void testSendTransaction() throws Exception { JBossMessage m = new JBossMessage(123); MessageTest.configureMessage(m); long deliveryId = 89281389; int deliveryCount = 12; MessageProxy proxy = JBossMessage.createThinDelegate(deli...
acknowledgeMethod = sessionDelegate.getMethod("acknowledge", new Class[] { Ack.class });
acknowledgeDeliveryMethod = sessionDelegate.getMethod("acknowledgeDelivery", new Class[] { Ack.class });
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; //Session send...
acknowledgeBatchMethod = sessionDelegate.getMethod("acknowledgeBatch", new Class[] { java.util.List.class });
acknowledgeDeliveriesMethod = sessionDelegate.getMethod("acknowledgeDeliveries", new Class[] { java.util.List.class });
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; //Session send...
cancelDeliveryMethod = sessionDelegate.getMethod("cancelDelivery", new Class[] { Cancel.class });
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; //Session send...
DataOutputStream dos; if (out instanceof DataOutputStream)
if (!(out instanceof MessagingObjectOutputStream))
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //TODO - We should get remoting to pass in a DataOutputStream //So we don't h...
dos = (DataOutputStream)out; } else { dos = new DataOutputStream(out);
throw new IllegalStateException("Must be MessagingObjectOutputStream");
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //TODO - We should get remoting to pass in a DataOutputStream //So we don't h...
serializableMarshaller.write(obj, dos);
serialize(dos, obj);
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //TODO - We should get remoting to pass in a DataOutputStream //So we don't h...
serializableMarshaller.write(obj, out);
serialize(dos, obj);
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //TODO - We should get remoting to pass in a DataOutputStream //So we don't h...
if (in instanceof JBossObjectInputStream)
if (!(in instanceof MessagingObjectInputStream))
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader());
throw new IllegalStateException("Must be MessagingObjectInputStream");
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { dis = new DataInputStream(in); }
DataInputStream dis = (DataInputStream)(((MessagingObjectInputStream)in).getUnderlyingStream());
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
Object ret = serializableUnMarshaller.read(dis, map);
Object ret = deserialize(dis);
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
public ClientDelivery(List msgs, int consumerID) { this.msgs = msgs; this.consumerID = consumerID;
public ClientDelivery() {
public ClientDelivery(List msgs, int consumerID) { this.msgs = msgs; this.consumerID = consumerID; }
public IdBlock(long low, long high) { this.low = low; this.high = high;
public IdBlock() {
public IdBlock(long low, long high) { this.low = low; this.high = high; }
return sessionStatesMap.values();
return sessionStatesMap == null ? Collections.emptySet() : sessionStatesMap.values();
public Collection getSessionStates() { if (sessionStatesList != null) { return sessionStatesList; } else { return sessionStatesMap.values(); } }
if (!isDependenciesFetched(node, conf) && (node.getDependencyDescriptor() == null || node.getDependencyDescriptor().isTransitive())) {
if ((node.getDependencyDescriptor() == null || node.getDependencyDescriptor().isTransitive())) {
private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ...
public DependencyDescriptor getDependencyDescriptor() { return _dd;
private static DependencyDescriptor getDependencyDescriptor(ModuleDescriptor md, IvyNode dependency) { if (md != null) { DependencyDescriptor[] dds = md.getDependencies(); for (int i = 0; i < dds.length; i++) { if (dds[i].getDependencyId().equals(dependency.getModuleId())) { return dds[i]; } } } return null;
public DependencyDescriptor getDependencyDescriptor() { return _dd; }
page.paintBorder(c, 0);
page.paintBorder(c, 0, Layer.PAGED_MODE_PRINT);
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
page.paintBorder(c, PAGE_PAINTING_CLEARANCE);
page.paintBorder(c, PAGE_PAINTING_CLEARANCE, Layer.PAGED_MODE_SCREEN);
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa...
nodeId = in.readUTF();
nodeId = in.readInt();
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); queueName = in.readUTF(); condition = in.readUTF(); filterString = (String)StreamUtils.readObject(in, false); channelId = in.readLong(); durable = in.readBoolean(); }
out.writeUTF(nodeId);
out.writeInt(nodeId);
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeUTF(queueName); out.writeUTF(condition); StreamUtils.writeObject(out, filterString, false, false); out.writeLong(channelId); out.writeBoolean(durable); }
}
public void actionPerformed(ActionEvent event) { visible = !visible; repaint(); }
blinkTimer = new Timer(getBlinkRate(), new BlinkTimerListener());
blinkListener = new BlinkTimerListener(); blinkTimer = new Timer(getBlinkRate(), blinkListener);
private void initBlinkTimer() { // Setup the blink timer. blinkTimer = new Timer(getBlinkRate(), new BlinkTimerListener()); blinkTimer.setRepeats(true); }
repaint();
appear(); }
public void moveDot(int dot) { this.dot = dot; handleHighlight(); adjustVisibility(this); repaint(); }
this.dot = dot;
if (dot >= 0) {
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); repaint(); }
repaint();
appear(); }
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); repaint(); }
c.graphics.setColor(Color.GREEN);
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
u.off();
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
log.info(this + " cancelled " + r);
log.trace(this + " cancelled " + r);
public void cancel(Routable r) throws Throwable { Object[] touple = null; Delivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; if (m == r) { d = (Delivery)o[1]; ...
log.info(this + " got routable:" + ref);
log.trace(this + " got routable:" + ref);
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info("Receiver [" + name + "] is rejecting a null reference");
log.trace("Receiver [" + name + "] is rejecting a null reference");
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info(this + " is rejecting message since doesn't match selector");
log.trace(this + " is rejecting message since doesn't match selector");
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info(this + " is rejecting reference " + ref);
log.trace(this + " is rejecting reference " + ref);
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info("State is:" + state);
log.trace("State is:" + state);
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info(this + " is " + (done ? "ACKing" : "NACKing") + " message " + ref);
log.trace(this + " is " + (done ? "ACKing" : "NACKing") + " message " + ref);
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
log.info("simulating an asynchronous ACK that arrives before we return the delivery to channel");
log.trace("simulating an asynchronous ACK that arrives before we return the delivery to channel");
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
tmp = "jks";
tmp = "gkr";
public static final String getDefaultType() { // Security reads every property in java.security so it // will return this property if it exists. String tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; }
public AckInfo(String messageID, String consumerID) { this.messageID = messageID; this.consumerID = consumerID;
public AckInfo() {
public AckInfo(String messageID, String consumerID) { this.messageID = messageID; this.consumerID = consumerID; }
previousAfter = previous.getStyle().getCalculatedStyle().getIdent(
previous.getStyle().getCalculatedStyle().getIdent(
public void markRun(int offset, BlockBox previous, BlockBox current) { RelayoutData previousData = get(offset-1); RelayoutData currentData = get(offset); IdentValue previousAfter = previousAfter = previous.getStyle().getCalculatedStyle().getIdent( ...
if (o instanceof AnonymousBlockContent) { List pendingInlineElements = block.getPendingInlineElements(); if (pendingInlineElements != null) { System.out.println("SETTING"); relayoutData.setHasPendingInlines(true); }
if (o instanceof AnonymousBlockContent && block.getPendingInlineElements() != null) { relayoutData.setHasPendingInlines(true);
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
BlockBox secondTry = layoutBlockChild(
childBox.detach(); childBox = layoutBlockChild(
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
if (secondTry.crossesPageBreak(c)) { secondTry.detach(); } else { childBox.detach(); childBox = secondTry; }
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
int heightBeforeRelayout = block.height;
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
block.getChild(runEnd).getAbsY() + childBox.getHeight())) { RelayoutResult result = relayoutOnNewPage(c, contentList, block,
block.getChild(runEnd).getAbsY() + childBox.getHeight()) && ! checkForPendingInlines(relayoutDataList, runStart, offset)) { block.detachChildren(runStart, offset); relayoutOnNewPage(c, contentList, block,
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
if (! result.isCanceled()) { if (result.isFits()) { block.detachChildren(runStart, offset); } else { block.detachChildren(offset+1, block.getChildCount()-1); block.height = heightBeforeRelayout; } }
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
private static RelayoutResult relayoutOnNewPage(
private static void relayoutOnNewPage(
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
if (checkForPendingInlines(relayoutDataList, start, end)) { RelayoutResult result = new RelayoutResult(); result.setCanceled(true); return result; }
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
int startAbsY = block.getAbsY() + block.ty + block.height; int endAbsY = 0;
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
c.restoreStateForRelayout(relayoutData.getLayoutState()); BlockBox secondTry = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent); if (secondTry.crossesPageBreak(c)) { secondTry.detach();
if (currentContent instanceof AnonymousBlockContent && relayoutData.isHasPendingInlines()) { XRLog.layout(Level.WARNING, "Unable to relayout anonymous block with pending inlines. Dropping rule.");
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
childBox = secondTry;
childBox = layoutBlockChild( c, block, styleSetListener, relayoutData.getListIndex(), relayoutData.isResetMargins(), true, currentContent);
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
if ((i == end && end == contentList.size()-1) || (i == end - 1)) { endAbsY = childBox.getAbsY() + childBox.getHeight(); }
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
RelayoutResult result = new RelayoutResult(); result.setFits(! c.getRootLayer().crossesPageBreak(c, startAbsY, endAbsY)); return result;
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
return false;
if(port == null) return false; return true;
public boolean acceptsSource(Object edge, Object port) { // if(port==null) return false; // WorkflowCell cell = (WorkflowCell)((WorkflowPort)port).getParent(); return false; }
WorkflowPort fromPort = (WorkflowPort)from.getChildAt(0); WorkflowPort toPort = (WorkflowPort)to.getChildAt(0);
WorkflowPort fromPort = (WorkflowPort)from.getChildAt(from.getSelectedPort()); WorkflowPort toPort = (WorkflowPort)to.getChildAt(to.getSelectedPort());
public void connectCells(WorkflowCell from, ActionDescriptor action, WorkflowCell to, ResultDescriptor result) { WorkflowPort fromPort = (WorkflowPort)from.getChildAt(0); WorkflowPort toPort = (WorkflowPort)to.getChildAt(0); resultIdGenerator.checkId(result.getId()); if(result.getId() == 0) result.setId(...
Set edges = new HashSet();
Map edges = new HashMap();
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
Iterator j = edges(cell.getFirstChild());
Iterator j = cell.getChildren().iterator();
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
WorkflowEdge edge = (WorkflowEdge)j.next(); edges.add(edge);
Object port = j.next(); Iterator k = edges(port); while(k.hasNext()) { WorkflowEdge edge = (WorkflowEdge)k.next(); ResultDescriptor descriptor = (ResultDescriptor)edge.getUserObject(); edges.put(new Integer(descriptor.getId()), edge); }
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
l.addAll(edges);
l.addAll(edges.values());
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
assertEquals(jm1.isJMSCorrelationIDBytes(), jm2.isJMSCorrelationIDBytes()); if (jm1.isJMSCorrelationIDBytes())
assertEquals(jm1.isCorrelationIDBytes(), jm2.isCorrelationIDBytes()); if (jm1.isCorrelationIDBytes())
protected void checkEquivalent(Message m1, Message m2) throws Exception { super.checkEquivalent(m1, m2); if (!(m1 instanceof JBossMessage) && !(m2 instanceof JBossMessage)) { fail(); } JBossMessage jm1 = (JBossMessage)m1; JBossMessage jm2 = (JBossMessage)m2; ...
i,
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
jmsProperties); m.setJMSRedelivered(i % 2 == 0);
new GUID().toString(), jmsProperties);
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
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;
public JBossSession(SessionDelegate delegate)
public JBossSession(SessionDelegate delegate, boolean isXA, int sessionType, boolean transacted, int acknowledgeMode)
public JBossSession(SessionDelegate delegate) { this.sessionDelegate = delegate; }
this.isXA = isXA; this.sessionType = sessionType; this.transacted = transacted; this.acknowledgeMode = acknowledgeMode;
public JBossSession(SessionDelegate delegate) { this.sessionDelegate = delegate; }
throw new NotYetImplementedException();
sessionDelegate.closing(); sessionDelegate.close();
public void close() throws JMSException { throw new NotYetImplementedException(); }
throw new NotYetImplementedException();
if (!transacted) throw new IllegalStateException("Session is not transacted - cannot call commit()"); sessionDelegate.commit();
public void commit() throws JMSException { throw new NotYetImplementedException(); }
if (sessionType == TYPE_TOPIC_SESSION) throw new IllegalStateException("Cannot create a browser on a TopicSession");
public QueueBrowser createBrowser(Queue queue) throws JMSException { throw new NotYetImplementedException(); }
return sessionDelegate.createConsumer(d);
MessageConsumer consumer = sessionDelegate.createConsumer(d); return consumer;
public MessageConsumer createConsumer(Destination d) throws JMSException { return sessionDelegate.createConsumer(d); }
if (sessionType == TYPE_QUEUE_SESSION) throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession");
public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException { throw new NotYetImplementedException(); }
return new JBossMessageProducer(producerDelegate);
return new JBossMessageProducer(producerDelegate, d);
public MessageProducer createProducer(Destination d) throws JMSException { ProducerDelegate producerDelegate = sessionDelegate.createProducerDelegate(d); return new JBossMessageProducer(producerDelegate); }
if (sessionType == TYPE_TOPIC_SESSION) throw new IllegalStateException("Cannot create a queue using a TopicSession");
public Queue createQueue(String queueName) throws JMSException { throw new NotYetImplementedException(); }
if (sessionType == TYPE_TOPIC_SESSION) throw new IllegalStateException("Cannot create a temp. queue using a TopicSession");
public TemporaryQueue createTemporaryQueue() throws JMSException { throw new NotYetImplementedException(); }
if (sessionType == TYPE_QUEUE_SESSION) throw new IllegalStateException("Cannot create a temporary topic on a QueueSession");
public TemporaryTopic createTemporaryTopic() throws JMSException { throw new NotYetImplementedException(); }
if (sessionType == TYPE_QUEUE_SESSION) throw new IllegalStateException("Cannot create a topic on a QueueSession");
public Topic createTopic(String topicName) throws JMSException { throw new NotYetImplementedException(); }