rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
fail("This test must be run in clustered mode!");
fail("This test must be run in remote mode!");
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
ServerManagement.start("all", 1);
try { ServerManagement.start(1, "all");
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
log.info("Sleeping for 10 seconds ...");
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
Thread.sleep(10000);
log.info("Sleeping for 10 seconds ...");
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
Thread.sleep(10000);
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
ServerManagement.spawn(1); ServerManagement.start("all", 1);
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
Integer index = (Integer)ServerManagement. getAttribute(1, new ObjectName("jboss.messaging:service=ServerPeer"), "serverPeerID");
ServerManagement.start(1, "all");
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
assertEquals(1, index.intValue());
Integer index = (Integer)ServerManagement. getAttribute(1, new ObjectName("jboss.messaging:service=ServerPeer"), "serverPeerID"); assertEquals(1, index.intValue()); InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment(1)); ic.bind("/xxx", "yyy"); assertEquals("yyy", ic.lookup("/xxx")); } final...
public void testRessurect() throws Exception { if (!ServerManagement.isClustered()) { fail("This test must be run in clustered mode!"); } ServerManagement.start("all", 1); ServerManagement.kill(1); // wait a bit for the server to die log.info("Sleeping for 10 second...
ServerManagement.spawn(7);
log.info("Waiting for server 7 to start ...");
public void testSimpleSpawn() throws Exception { try { ServerManagement.spawn(7); ServerManagement.start("all", 7); Integer index = (Integer)ServerManagement. getAttribute(7, new ObjectName("jboss.messaging:service=ServerPeer"), "serverPeerID"); assertEquals(7, ...
ServerManagement.start("all", 7);
ServerManagement.start(7, "all"); log.info("Server 7 started");
public void testSimpleSpawn() throws Exception { try { ServerManagement.spawn(7); ServerManagement.start("all", 7); Integer index = (Integer)ServerManagement. getAttribute(7, new ObjectName("jboss.messaging:service=ServerPeer"), "serverPeerID"); assertEquals(7, ...
log.info("Killing server 7");
public void testSimpleSpawn() throws Exception { try { ServerManagement.spawn(7); ServerManagement.start("all", 7); Integer index = (Integer)ServerManagement. getAttribute(7, new ObjectName("jboss.messaging:service=ServerPeer"), "serverPeerID"); assertEquals(7, ...
callbackClient.setSubsystem(JMSRemotingConnection.JMS_CALLBACK_SUBSYSTEM);
public void setCallbackClient(Client client) { callbackClient = client; //We explictly set the Marshaller since otherwise remoting tries to resolve the marshaller every time //which is very slow - see org.jboss.remoting.transport.socket.ProcessInvocation //This can make a massive difference on ...
LABEL: for (Iterator iter = currentSteps.iterator(); iter.hasNext();) {
for (Iterator iter = currentSteps.iterator(); !validAction && iter.hasNext();) {
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); List currentSteps = store.findCurrentSteps(id); Actio...
iterator.hasNext();) {
!validAction && iterator.hasNext();) {
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); List currentSteps = store.findCurrentSteps(id); Actio...
break LABEL;
public void doAction(long id, int actionId, Map inputs) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getWorkflow(entry.getWorkflowName()); List currentSteps = store.findCurrentSteps(id); Actio...
if (action == null) { return false; }
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps) throws WorkflowException { RestrictionDescriptor restriction = action.getRestriction(); String conditionType = null; List conditions = null; if (restriction != null) { conditionType =...
cond = ( (ConditionalSelector)selector ).getCondition();
cond = ( (ConditionalSelector)simple ).getCondition();
private void addChainedSelector( net.homelinux.tobe.css.Selector s, Selector selector ) { int axis = 0; SimpleSelector simple = null; switch ( selector.getSelectorType() ) { case Selector.SAC_DIRECT_ADJACENT_SELECTOR: axis = net.homelinux.tobe.css.Selector.IMMEDIATE_SI...
simple = ( (ConditionalSelector)selector ).getSimpleSelector();
simple = ( (ConditionalSelector)simple ).getSimpleSelector();
private void addChainedSelector( net.homelinux.tobe.css.Selector s, Selector selector ) { int axis = 0; SimpleSelector simple = null; switch ( selector.getSelectorType() ) { case Selector.SAC_DIRECT_ADJACENT_SELECTOR: axis = net.homelinux.tobe.css.Selector.IMMEDIATE_SI...
if(contentList == null) return block;
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_counter = c.get...
Uu.p("o = " + o);
public static void layoutContent(Context c, Box box, List contentList, BlockBox block) { // Uu.p("BoxLayout.layoutContent(): " + block); Iterator contentIterator = contentList.iterator(); //TODO: how does a block's firstLineStyle and firstLetterStyle propagate downwards? while (contentIt...
return "JRadioButtonMenuItem";
return super.paramString();
protected String paramString() { return "JRadioButtonMenuItem"; }
log.info(this + " started");
log.info(this + " started, fullSize=" + fullSize + ", pageSize=" + pageSize + ", downCacheSize=" + downCacheSize);
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateException( "...
throw new UnsupportedOperationException("Where a default destination is specified for the sender " + "and a destination is specified in the arguments to the " + "send, these destinations must be equal");
throw new UnsupportedOperationException("Where a default destination is specified " + "for the sender and a destination is " + "specified in the arguments to the send, " + "these destinations must be equal");
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
foreign = true;
public Object handleSend(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); Destination destination = (Destination)args[0]; Message m = (Message)args[1]; int deliveryMode = ((Integer)args[2]).intValu...
if (child.getMaster().getStyle().isBottomAuto()) { child.getMaster().positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(getExtents(c)); Boxing.layout(c, (BlockBox)child.getMaster(), child.getLayoutData().getContent()); child.getMaster().positionAbsolute(c); } else { c.reInit(child...
layoutAbsoluteChild(c, child); if (child.getMaster().getStyle().isAvoidPageBreakInside() && child.getMaster().crossesPageBreak(c)) { ((BlockBox)child.getMaster()).setNeedPageClear(true);
private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i...
child.getMaster().positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(getExtents(c)); Boxing.layout(c, (BlockBox)child.getMaster(), child.getLayoutData().getContent());
layoutAbsoluteChild(c, child); ((BlockBox)child.getMaster()).setNeedPageClear(false);
private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i...
getMaster().positionAbsolute(c);
((BlockBox)getMaster()).positionAbsolute(c);
private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { getMaster().positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } }
fixed.y = -rect.y;
fixed.y = 0;
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ...
fixed.positionAbsolute(c);
((BlockBox)fixed).positionAbsolute(c);
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ...
if(box == selection_end && box == selection_start) { in_selection = false; }
public void updateSelection(Box box) { if(box == selection_end) { in_selection = false; } if(box == selection_start) { in_selection = true; } }
available_fonts_hash.put("Serif",new Font("SansSerif",Font.PLAIN,1)); available_fonts_hash.put("Serif",new Font("Monospaced",Font.PLAIN,1));
available_fonts_hash.put("SansSerif",new Font("SansSerif",Font.PLAIN,1)); available_fonts_hash.put("Monospaced",new Font("Monospaced",Font.PLAIN,1));
public FontResolverTest() { GraphicsEnvironment gfx = GraphicsEnvironment.getLocalGraphicsEnvironment(); String[] available_fonts = gfx.getAvailableFontFamilyNames(); //u.p("available fonts ="); //u.p(available_fonts); instance_hash = new HashMap(); // preload the f...
drainDestination(cf, queue);
public void setUp() throws Exception { if (ServerManagement.isRemote()) { fail("this test is not supposed to run in a remote configuration!"); } super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = ...
this.drainDestination(cf, queue);
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue...
panel.init(); panel.createLayout();
panel.init(startPage);
public void init() { logger.info("creating UI"); actions = new BrowserActions(this); actions.init(); panel = new BrowserPanel(this, new FrameBrowserPanelListener()); panel.init(); panel.createLayout(); panel.createActions(); menu = new BrowserMenuBar(this); ...
frame.getContentPane().add(bs.panel);
frame.getContentPane().add(bs.panel.toolbar, BorderLayout.PAGE_START); frame.getContentPane().add(bs.panel, BorderLayout.CENTER); bs.panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED)); frame.getContentPane().add(bs.panel.status, BorderLayout.PAGE_END);
public static void main(String[] args) { if (GeneralUtil.isMacOSX()) { try { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "FS Browser"); } catch (Exception ex) { try {...
public EtchedBorder(int etchType)
public EtchedBorder()
public EtchedBorder(int etchType) { if ((etchType != RAISED) && (etchType != LOWERED)) throw new IllegalArgumentException(); this.etchType = etchType; /* The highlight and shadow fields already have a null value * when the constructor gets called, so there is no need to * assign a value here. ...
if ((etchType != RAISED) && (etchType != LOWERED)) throw new IllegalArgumentException(); this.etchType = etchType;
this(LOWERED);
public EtchedBorder(int etchType) { if ((etchType != RAISED) && (etchType != LOWERED)) throw new IllegalArgumentException(); this.etchType = etchType; /* The highlight and shadow fields already have a null value * when the constructor gets called, so there is no need to * assign a value here. ...
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle();
private static int[] extractLeftTopRelative(Context c, CalculatedStyle style) {
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { ...
public static void translateRelative(Context c, boolean rendering) {
public static void translateRelative(Context c, CalculatedStyle activeStyle, boolean rendering) {
public static void translateRelative(Context c, boolean rendering) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(left, top); ...
topLeft = extractLeftTopRelative(c);
topLeft = extractLeftTopRelative(c, activeStyle);
public static void translateRelative(Context c, boolean rendering) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(left, top); ...
public static void untranslateRelative(Context c, boolean rendering) {
public static void untranslateRelative(Context c, CalculatedStyle activeStyle, boolean rendering) {
public static void untranslateRelative(Context c, boolean rendering) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(-left, -top); ...
topLeft = extractLeftTopRelative(c);
topLeft = extractLeftTopRelative(c, activeStyle);
public static void untranslateRelative(Context c, boolean rendering) { int top = 0; int left = 0; int topLeft[] = null; topLeft = extractLeftTopRelative(c); if (topLeft != null) { top = topLeft[0]; left = topLeft[1]; c.translate(-left, -top); ...
while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } final byte scancode = buf.get(0); if (interpreter != null) { final PointerEvent event = interpreter.handleScancode(scancode & 0xff); if (event != null) { dispatchEvent(event); } } } catch (Throwable ex) { ex.p...
processChannel();
public void run() { while ((channel != null) && channel.isOpen()) { try { buf.rewind(); if (channel.read(buf) != 1) { continue; } final byte scancode = buf.get(0); if (interpreter != null) { final PointerEvent event = interpreter.handleScancode(scancode & 0xff); if (event != nu...
System.out.println("pulling from here: " + e.getAttribute("src"));
JComponent addComponent(Context c, Element e) { JComponent cc = (JComponent) components.get(e); if (cc != null) { return cc; } if (e.getNodeName().equals("input")) { String type = e.getAttribute("type"); if (type == null || type.equals("")) { ...
return new char[0];
return getText().toCharArray();
public char[] getPassword() { return new char[0]; // TODO }
MenuKeyEvent e = new MenuKeyEvent(event.getComponent(), event.getID(), event.getWhen(), event.getModifiers(), event.getKeyCode(), event.getKeyChar(), path, manager); processMenuKeyEvent(e); if (e.isConsumed()) event.consume();
public void processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager) { // Need to implement. }
switch (event.getID()) { case KeyEvent.KEY_PRESSED: fireMenuKeyPressed(event); break; case KeyEvent.KEY_RELEASED: fireMenuKeyReleased(event); break; case KeyEvent.KEY_TYPED: fireMenuKeyTyped(event); break; default: break; }
public void processMenuKeyEvent(MenuKeyEvent event) { // Need to implement. }
DeliveryRunnable dr = new DeliveryRunnable(del, null, consumerID, false);
DeliveryRunnable dr = new DeliveryRunnable(del, consumerID, null, false);
public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m = new JBossMessage(new GUID().toString()); MessageDelegate del = JBossMessage.createThinDelegate(m, 7); MessageTest.configureMessage(m); Delivery...
void add(Delivery d) throws Throwable;
void add(MessageReference ref, Transaction tx) throws Throwable;
void add(Delivery d) throws Throwable;
boolean remove(Delivery d, Transaction tx) throws Throwable;
boolean remove(MessageReference ref) throws Throwable;
boolean remove(Delivery d, Transaction tx) throws Throwable;
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) {
private InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) {
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
if (prev != null && prev.getNode() == node) {
if (prev != null && prev.getContent() == textContent) {
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
String text = node.getNodeValue();
String text = textContent.getText();
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
CalculatedStyle style = c.css.getStyle(node);
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
Font font = FontUtil.getFont(c, style); if (LayoutUtil.isReplaced(c, node)) { return LineBreaker.generateReplacedInlineBox(c, node, avail, prev, text, prev_align, font); } if (LayoutUtil.isFloatedBlock(node, c)) { return FloatUtil.generateFloatedBlockInlineBox(c, node, avail, prev, text, prev_align, font);
if (isFirstLetter && firstLetterStyle != null) { return LineBreaker.generateFirstLetterInlineBox(c, start, text, prev_align, textContent, firstLetterStyle, firstLineStyle);
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
if (LineBreaker.isFirstLetter(c, node, start)) { return LineBreaker.generateFirstLetterInlineBox(c, node, start, text, prev, prev_align, avail); } if (c.getRenderingContext().getLayoutFactory().isBreak(node)) {
/*if (c.getRenderingContext().getLayoutFactory().isBreak(node)) {
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
}
}*/
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
WhitespaceStripper whitespace = new WhitespaceStripper();
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
return whitespace.createInline(c, node, text, prev, prev_align, avail, max_width, font);
return WhitespaceStripper.createInline(c, textContent, prev, prev_align, avail, max_width, font, firstLineStyle);
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) {
private boolean isEndOfBlock(InlineBox prev_inline, Content content) {
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) { // replaced elements aren't split, so done with this one if (LayoutUtil.isReplaced(c, current_node)) {//if(content instanceof ReplacedContent) return true; } if (LayoutUtil.isFloatedBlock(curren...
if (LayoutUtil.isReplaced(c, current_node)) {
if (content instanceof ReplacedContent) {
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) { // replaced elements aren't split, so done with this one if (LayoutUtil.isReplaced(c, current_node)) {//if(content instanceof ReplacedContent) return true; } if (LayoutUtil.isFloatedBlock(curren...
if (LayoutUtil.isFloatedBlock(current_node, c)) {
if (content instanceof FloatedBlockContent) {
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) { // replaced elements aren't split, so done with this one if (LayoutUtil.isReplaced(c, current_node)) {//if(content instanceof ReplacedContent) return true; } if (LayoutUtil.isFloatedBlock(curren...
if (c.getRenderingContext().getLayoutFactory().isBreak(current_node)) {
/*if (c.getRenderingContext().getLayoutFactory().isBreak(current_node)) {
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) { // replaced elements aren't split, so done with this one if (LayoutUtil.isReplaced(c, current_node)) {//if(content instanceof ReplacedContent) return true; } if (LayoutUtil.isFloatedBlock(curren...
}
}*/
public boolean isEndOfBlock(Context c, Node current_node, InlineBox prev_inline) { // replaced elements aren't split, so done with this one if (LayoutUtil.isReplaced(c, current_node)) {//if(content instanceof ReplacedContent) return true; } if (LayoutUtil.isFloatedBlock(curren...
if (LayoutUtil.isHiddenNode(box.getElement(), c)) {
/* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) {
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
}
}*/
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
List contentList = ContentUtil.getInlineContentList(box.getElement(), c);
List contentList = box.getContent().getContent(c);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
Element elem = block.getElement(); CalculatedStyle style = c.css.getStyle(elem); remaining_width = TextIndent.doTextIndent(style, remaining_width, curr_line);
CalculatedStyle parentStyle = box.getContent().getStyle(); remaining_width = TextIndent.doTextIndent(parentStyle, remaining_width, curr_line);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
List inline_node_list = null; if (box.isAnonymous()) { inline_node_list = ((AnonymousBlockBox) box).node_list; } else { inline_node_list = InlineUtil.getInlineNodeList(elem, c); } Node current_node = InlineUtil.nextTextNode(inline_node_list);
Iterator contentIterator = contentList.iterator();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
while (current_node != null) {
while (contentIterator.hasNext()) { Object o = contentIterator.next(); if (o instanceof FirstLineStyle) { firstLineStyle = ((FirstLineStyle) o).getStyle(); continue; } if (o instanceof FirstLetterStyle) { firstLetterStyle = ((FirstLetterStyle) o).getStyle(); continue; } Content currentContent = (Content) o;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
if (prev_inline != null && prev_inline.getNode() == current_node) { if (isEndOfBlock(c, current_node, prev_inline)) {
if (prev_inline != null && prev_inline.getContent() == currentContent) { if (isEndOfBlock(prev_inline, currentContent)) {
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
currentStyle = currentContent.getStyle();
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
InlineBox new_inline = calculateInline(c, current_node, remaining_width, bounds.width, curr_line, prev_inline, elem, prev_align_inline);
InlineBox new_inline = calculateInline(c, currentContent, remaining_width, bounds.width, prev_inline, prev_align_inline, isFirstLetter, firstLetterStyle, firstLineStyle);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
isFirstLetter = false; firstLetterStyle = null;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
saveLine(curr_line, prev_line, elem, bounds.width, bounds.x, c, block, false);
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, block, false); firstLineStyle = null;
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
if (!LayoutUtil.isFloated(new_inline, c)) { if (!LayoutUtil.isFloatedBlock(new_inline.getNode(), c)) {
if (!(currentContent instanceof ReplacedContent)) { if (!(currentContent instanceof FloatedBlockContent)) {
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
if (!LayoutUtil.isFloated(new_inline, c)) {
if (!(currentContent instanceof FloatedBlockContent)) {
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
current_node = InlineUtil.nextTextNode(inline_node_list);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
saveLine(curr_line, prev_line, elem, bounds.width, bounds.x, c, block, true);
saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, block, true);
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } //TODO: probably a temporary hack, may have a Content-object in the box that can be called instead List contentLi...
TextDecoration.setupTextDecoration(ctx, box.getNode(), (InlineBox) box);
TextDecoration.setupTextDecoration((InlineBox) box);
public void restyle(Context ctx, Box box) { super.restyle(ctx, box); if (box instanceof InlineBox) { TextDecoration.setupTextDecoration(ctx, box.getNode(), (InlineBox) box); } }
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x,
private void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x,
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l...
TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, last);
TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, last);
private void saveLine(LineBox line_to_save, LineBox prev_line, Element containing_block, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, line_to_save, containing_block, width, x, l...
methodName.equals("createBrowserDelegate"))
methodName.equals("createBrowserDelegate") || methodName.equals("createConnectionDelegate"))
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") ...
localServer.start("all");
localServer.start("all", true);
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); //Set lease period to -1 --> this should disable leasing so the state won't be cleared up ...
log.debug(this + " starting");
log.info(this + " starting");
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); JDBCPersistenceManager jpm = new JDBCPersistenceManager(); jpm.start(); pm = jpm; txRepository = new TransactionRep...
mbeanServer.invoke(connector, "removeInvocationHandler", new Object[] {"JMS"}, new String[] {"java.lang.String"});
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); tearDownConnectionFactories(); destinationManager.destroyAllDestinations(); pm = null; txRepository = null; ms = null; client...
"CheckBoxMenuItem.icon", new UIDefaults.LazyValue() { public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); } },
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
return BasicIconFactory.getMenuItemCheckIcon();
return BasicIconFactory.getCheckBoxMenuItemIcon();
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
"Desktop.background", new ColorUIResource(0, 92, 92),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
"PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12),
"PasswordField.font", new FontUIResource("Dialog", Font.PLAIN, 12),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
"Tree.selectionBorder", new BorderUIResource.LineBorderUIResource(Color.black),
protected void initComponentDefaults(UIDefaults defaults) { Object[] uiDefaults; Color highLight = new Color(249, 247, 246); Color light = new Color(239, 235, 231); Color shadow = new Color(139, 136, 134); Color darkShadow = new Color(16, 16, 16); uiDefaults = new Object[] { "AbstractUndoa...
return BasicIconFactory.getCheckBoxIcon();
return BasicIconFactory.getCheckBoxMenuItemIcon();
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); }
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.WHIT...
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.WHIT...
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,...
return new IconUIResource(BasicIconFactory.createEmptyFrameIcon());
return BasicIconFactory.getRadioButtonIcon();
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
ServerManagement.deInit();
protected void tearDown() throws Exception { ServerManagement.setDefaultSecurityConfig(oldDefaultConfig); ServerManagement.undeployQueue("testQueue"); ServerManagement.undeployQueue("testTopic"); ServerManagement.undeployTopic("securedTopic"); ServerManagement.undeployTopic("unsecure...
if (tx == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); }
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { log.error("Cannot fi...
if (tx.getState() != TxState.TX_PREPARED)
if (tx != null)
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { log.error("Cannot fi...
log.error("commit called for transaction, but it is not prepared"); throw new XAException(XAException.XAER_PROTO);
if (tx.getState() != TxState.TX_PREPARED) { log.error("commit called for transaction, but it is not prepared"); throw new XAException(XAException.XAER_PROTO); } } else {
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { log.error("Cannot fi...
tx.setState(TxState.TX_COMMITED);
if (tx != null) { tx.setState(TxState.TX_COMMITED); }
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (log.isTraceEnabled()) { log.trace("Commiting xid=" + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { log.error("Cannot fi...