rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; | public WorkflowException() { | public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; } |
public void println (String str) | public void println () | public void println (String str) { print (str == null ? "null" : str, true); } |
print (str == null ? "null" : str, true); | print(line_separator, 0, line_separator.length, false); | public void println (String str) { print (str == null ? "null" : str, true); } |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { | public boolean canInitialize(String workflowName, int initialState) { | public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { | public boolean canModifyEntryState(long id, int newState) { | public boolean canModifyEntryState(long id, int newState) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } |
public int[] getAvailableActions(long id) throws WorkflowException { | public int[] getAvailableActions(long id) { | public int[] getAvailableActions(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getAvailableActions(id); } |
public List getCurrentSteps(long id) throws StoreException, FactoryException { | public List getCurrentSteps(long id) { | public List getCurrentSteps(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getCurrentSteps(id); } |
public int getEntryState(long id) throws WorkflowException { | public int getEntryState(long id) { | public int getEntryState(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getEntryState(id); } |
public List getHistorySteps(long id) throws StoreException, FactoryException { | public List getHistorySteps(long id) { | public List getHistorySteps(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getHistorySteps(id); } |
public PropertySet getPropertySet(long id) throws StoreException, FactoryException { | public PropertySet getPropertySet(long id) { | public PropertySet getPropertySet(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getPropertySet(id); } |
public List getSecurityPermissions(long id) throws WorkflowException { | public List getSecurityPermissions(long id) { | public List getSecurityPermissions(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); } |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } |
public String getWorkflowName(long id) throws StoreException, FactoryException { | public String getWorkflowName(long id) { | public String getWorkflowName(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowName(id); } |
public String[] getWorkflowNames() throws FactoryException { | public String[] getWorkflowNames() { | public String[] getWorkflowNames() throws FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowNames(); } |
public boolean canInitialize(String workflowName, int initialStep) throws WorkflowException; | public boolean canInitialize(String workflowName, int initialStep); | public boolean canInitialize(String workflowName, int initialStep) throws WorkflowException; |
public OfbizWorkflow(String caller) throws FactoryException { | public OfbizWorkflow(String caller) { | public OfbizWorkflow(String caller) throws FactoryException { super.context = new OfbizWorkflowContext(caller); loadConfig(); } |
loadConfig(); | try { loadConfig(); } catch (FactoryException e) { log.fatal("Could not initialize workflow", e); } | public OfbizWorkflow(String caller) throws FactoryException { super.context = new OfbizWorkflowContext(caller); loadConfig(); } |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException; | public boolean canModifyEntryState(long id, int newState); | public boolean canModifyEntryState(long id, int newState) throws WorkflowException; |
public int[] getAvailableActions(long id) throws WorkflowException; | public int[] getAvailableActions(long id); | public int[] getAvailableActions(long id) throws WorkflowException; |
public List getCurrentSteps(long id) throws WorkflowException; | public List getCurrentSteps(long id); | public List getCurrentSteps(long id) throws WorkflowException; |
public int getEntryState(long id) throws WorkflowException; | public int getEntryState(long id); | public int getEntryState(long id) throws WorkflowException; |
public List getHistorySteps(long id) throws WorkflowException; | public List getHistorySteps(long id); | public List getHistorySteps(long id) throws WorkflowException; |
public PropertySet getPropertySet(long id) throws WorkflowException; | public PropertySet getPropertySet(long id); | public PropertySet getPropertySet(long id) throws WorkflowException; |
public List getSecurityPermissions(long id) throws WorkflowException; | public List getSecurityPermissions(long id); | public List getSecurityPermissions(long id) throws WorkflowException; |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException; | public WorkflowDescriptor getWorkflowDescriptor(String workflowName); | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws WorkflowException; |
public String getWorkflowName(long id) throws WorkflowException; | public String getWorkflowName(long id); | public String getWorkflowName(long id) throws WorkflowException; |
String[] getWorkflowNames() throws FactoryException; | String[] getWorkflowNames(); | String[] getWorkflowNames() throws FactoryException; |
protected SetOfIntegerSyntax(int lowerBound, int upperBound) | protected SetOfIntegerSyntax(int member) | protected SetOfIntegerSyntax(int lowerBound, int upperBound) { // We only want to reject non-null ranges where lower<0. if (lowerBound <= upperBound && lowerBound < 0) throw new IllegalArgumentException(); members = (lowerBound <= upperBound ? new int[][]{{lowerBound, upperBound}} ... |
if (lowerBound <= upperBound && lowerBound < 0) throw new IllegalArgumentException(); | if (member < 0) throw new IllegalArgumentException("member may not be less than 0"); | protected SetOfIntegerSyntax(int lowerBound, int upperBound) { // We only want to reject non-null ranges where lower<0. if (lowerBound <= upperBound && lowerBound < 0) throw new IllegalArgumentException(); members = (lowerBound <= upperBound ? new int[][]{{lowerBound, upperBound}} ... |
members = (lowerBound <= upperBound ? new int[][]{{lowerBound, upperBound}} : new int[0][]); | this.members = new int[][]{{member, member}}; | protected SetOfIntegerSyntax(int lowerBound, int upperBound) { // We only want to reject non-null ranges where lower<0. if (lowerBound <= upperBound && lowerBound < 0) throw new IllegalArgumentException(); members = (lowerBound <= upperBound ? new int[][]{{lowerBound, upperBound}} ... |
public Object getResult() | public JobResult getResult() | public Object getResult() { return !failed ? new JobTimings(initTime, testTime) : null; } |
return !failed ? new JobTimings(initTime, testTime) : null; | log.info("Getting result"); JobResult res = new JobResult(); res.failed = failed; if (res.failed) { log.info("Failed"); res.throwables = throwables; } else { log.info("Didn't fail"); res.initTime = initTime; res.testTime = testTime; } return res; | public Object getResult() { return !failed ? new JobTimings(initTime, testTime) : null; } |
catch (Exception e) | catch (Throwable t) | public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Except... |
log.error("Failed to run test", e); | log.error("Failed to run test", t); | public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Except... |
if (testTime == 0) | if (!throwablesList.isEmpty()) | protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi... |
failed = true; log.error("!!!!!!!!!!!!!! testTime is zero"); | throwables = new Throwable[throwablesList.size()]; Iterator iter = throwablesList.iterator(); int i = 0; while (iter.hasNext()) { throwables[i++] = (Throwable)iter.next(); } | protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi... |
log.info("Throwables array is: " + throwables); | protected void runTest() throws Exception { failed = false; Thread[] servitorThreads = new Thread[numSessions]; Servitor[] servitors = new Servitor[numSessions]; for (int i = 0; i < numSessions; i++) { Servitor servitor = createServitor(numMessages); servi... | |
Object getResult(); | JobResult getResult(); | Object getResult(); |
if ( node.getNodeName().equals( "a" ) ) { | if ( LayoutFactory.isLink(node)) { | public void mousePressed( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } u.p( "pressed " + box ); if ( box.node != null ) { Node node = box.node; if ( node.getNodeType() == node.TEXT_NODE ) { ... |
if ( node.getNodeName().equals( "a" ) ) { | if ( LayoutFactory.isLink(node) ) { | public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } u.p( "pressed " + box ); if ( box.node != null ) { Node node = box.node; if ( node.getNodeType() == node.TEXT_NODE ) { ... |
final ProtectionDomain pd = method.getDeclaringClass() .getProtectionDomain(); | final VmType declClass = method.getDeclaringClass(); final ProtectionDomain pd = declClass.getProtectionDomain(); | public static void checkPermission(Permission perm) throws AccessControlException, PragmaCheckPermission { if (!Unsafe.getCurrentProcessor().isThreadSwitchActive()) { //getContext().checkPermission(perm); // This is an optimized version of // getContext().checkPerm... |
+ "\" not granted"); } | + "\" not granted due to " + declClass.getName() + " [" + pd.getPermissions() + "]"); } | public static void checkPermission(Permission perm) throws AccessControlException, PragmaCheckPermission { if (!Unsafe.getCurrentProcessor().isThreadSwitchActive()) { //getContext().checkPermission(perm); // This is an optimized version of // getContext().checkPerm... |
public InitialContextFactory createInitialContextFactory (Hashtable environment) throws NamingException; | InitialContextFactory createInitialContextFactory (Hashtable environment) throws NamingException; | public InitialContextFactory createInitialContextFactory (Hashtable environment) throws NamingException; |
private java.util.Iterator getMatchedRulesets(final List mappedSelectors) { | private static java.util.Iterator getMatchedRulesets(final List mappedSelectors) { | private java.util.Iterator getMatchedRulesets(final List mappedSelectors) { return new java.util.Iterator() { java.util.Iterator selectors = mappedSelectors.iterator(); public boolean hasNext() { return selectors.hasNext(); ... |
private java.util.Iterator getSelectedRulesets(java.util.List selectorList) { | private static java.util.Iterator getSelectedRulesets(java.util.List selectorList) { | private java.util.Iterator getSelectedRulesets(java.util.List selectorList) { final java.util.List sl = selectorList; return new java.util.Iterator() { java.util.Iterator selectors = sl.iterator(); public boolean hasNext() { r... |
return new Ruleset((CSSStyleRule) style.getCssRules().item(0), StylesheetInfo.AUTHOR); | return new Ruleset((CSSStyleRule) style.getCssRules().item(0), origin); | public Ruleset parseStyleDeclaration(int origin, String styleDeclaration) { try { java.io.StringReader reader = new java.io.StringReader("* {" + styleDeclaration + "}"); InputSource is = new InputSource(reader); CSSStyleSheet style = parser.parseStyleSheet(is); rea... |
if (isRootLayer() && child.isAlternateFlow()) { continue; } | private List collectLayers(int which) { List result = new ArrayList(); if (which != AUTO) { result.addAll(getStackingContextLayers(which)); } List children = getChildren(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)child... | |
if (isRootLayer() && target.isAlternateFlow()) { continue; } | private List getStackingContextLayers(int which) { List result = new ArrayList(); List children = getChildren(); for (int i = 0; i < children.size(); i++) { Layer target = (Layer)children.get(i); if (target.isStackingContext()) { if (which == NEGATIV... | |
if (child.isRequiresLayout() && ! child.getMaster().getStyle().isAlternateFlow()) { | if (child.isRequiresLayout() && ! child.isAlternateFlow()) { | 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... |
if (child.isRequiresLayout() && child.getMaster().getStyle().isAlternateFlow()) { | if (child.isRequiresLayout() && child.isAlternateFlow()) { | private void layoutAlternateFlows(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.isR... |
RenderingContext c, Shape clip, Box master, | CssContext c, Shape clip, Box master, | public void collect( RenderingContext c, Shape clip, Box master, List blockContent, List inlineContent) { collect(c, clip, master, master, blockContent, inlineContent); } |
if (getStyle().isHidden()) { | if (! getStyle().isVisible()) { | public void paintListMarker(RenderingContext c) { if (getStyle().isHidden()) { return; } if (getStyle().isListItem()) { ListItemPainter.paint(c, this); } } |
public void addAsfMessage(Message m, String receiverID); | public void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons); | public void addAsfMessage(Message m, String receiverID); |
public static void postChildrenLayout(Context c, Box block) { | public static void postChildrenLayout(Context c) { | public static void postChildrenLayout(Context c, Box block) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } |
if (style.hasProperty(CSSName.RIGHT)) { if (style.isIdentifier(CSSName.RIGHT)) { if (style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { box.right_set = false; } } else { box.right = (int) style.getFloatPropertyProportionalWidth(CSSName.RIGHT, c.getBlockFormattingContext().getWidth(), c.getCtx()); box.right_set = true; ... | if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { box.right = (int) style.getFloatPropertyProportionalWidth(CSSName.RIGHT, c.getBlockFormattingContext().getWidth(), c.getCtx()); box.right_set = true; | public static void setupAbsolute(Box box, Context c) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdent(CSSName.POSITION, IdentValue.ABSOLUTE)) { if (style.hasProperty(CSSName.RIGHT)) { //Uu.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... |
if (style.hasProperty(CSSName.LEFT)) { if (style.isIdentifier(CSSName.LEFT)) { if (style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { box.left_set = false; } } else { box.left = (int) style.getFloatPropertyProportionalWidth(CSSName.LEFT, c.getBlockFormattingContext().getWidth(), c.getCtx()); box.left_set = true; } | if (!style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { box.left = (int) style.getFloatPropertyProportionalWidth(CSSName.LEFT, c.getBlockFormattingContext().getWidth(), c.getCtx()); box.left_set = true; | public static void setupAbsolute(Box box, Context c) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdent(CSSName.POSITION, IdentValue.ABSOLUTE)) { if (style.hasProperty(CSSName.RIGHT)) { //Uu.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... |
if (style.hasProperty(CSSName.BOTTOM)) { | if (!style.isIdent(CSSName.BOTTOM, IdentValue.AUTO)) { | public static void setupAbsolute(Box box, Context c) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdent(CSSName.POSITION, IdentValue.ABSOLUTE)) { if (style.hasProperty(CSSName.RIGHT)) { //Uu.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... |
if (style.hasProperty(CSSName.TOP)) { | if (!style.isIdent(CSSName.TOP, IdentValue.AUTO)) { | public static void setupAbsolute(Box box, Context c) { CalculatedStyle style = c.getCurrentStyle(); if (style.isIdent(CSSName.POSITION, IdentValue.ABSOLUTE)) { if (style.hasProperty(CSSName.RIGHT)) { //Uu.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... |
return layout(c, content, null); | Box block = preLayout(c, content); if (c.shouldStop()) return block; return realLayout(c, block, content); | public static Box layout(Context c, Content content) { return layout(c, content, null); } |
super.drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); InitialContext initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Qu... | |
boolean cancel() throws Throwable; | void cancel() throws Throwable; | boolean cancel() throws Throwable; |
public URL(String spec) throws MalformedURLException | public URL(String protocol, String host, int port, String file) throws MalformedURLException | public URL(String spec) throws MalformedURLException { this((URL) null, spec != null ? spec : "", (URLStreamHandler) null); } |
this((URL) null, spec != null ? spec : "", (URLStreamHandler) null); } | this(protocol, host, port, file, null); } | public URL(String spec) throws MalformedURLException { this((URL) null, spec != null ? spec : "", (URLStreamHandler) null); } |
for(Iterator i = old.iterator(); i.hasNext();) | TransactionManager mgr = this.sessionEndpoint.serverPeer.getTransactionManager(); Transaction txOld; try | void redeliver() throws JMSException { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered // TODO and some old deliveries may be lost if (log.isTraceEnabled()) { log.trace("redeliver"); } List old = new ArrayList(); sy... |
Delivery d = (Delivery)i.next(); d.redeliver(this); | mgr.rollback(); | void redeliver() throws JMSException { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered // TODO and some old deliveries may be lost if (log.isTraceEnabled()) { log.trace("redeliver"); } List old = new ArrayList(); sy... |
catch(Throwable t) | catch (Throwable t2) | void redeliver() throws JMSException { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered // TODO and some old deliveries may be lost if (log.isTraceEnabled()) { log.trace("redeliver"); } List old = new ArrayList(); sy... |
String msg = "Failed to initiate redelivery"; log.error(msg, t); throw new JMSException(msg); | log.error("Failed to rollback", t2); throw new IllegalStateException("Failed to rollback"); } } finally { if (txOld != null) { try { mgr.resume(txOld); } catch (Exception e) { log.error("Failed to resume tx", e); throw new IllegalStateException("Failed to resume tx"); } | void redeliver() throws JMSException { // TODO I need to do this atomically, otherwise only some of the messages may be redelivered // TODO and some old deliveries may be lost if (log.isTraceEnabled()) { log.trace("redeliver"); } List old = new ArrayList(); sy... |
public boolean accept(Routable routable); | boolean accept(Routable routable); | public boolean accept(Routable routable); |
public SimpleDelivery(DeliveryObserver observer, MessageReference ref) | public SimpleDelivery() | public SimpleDelivery(DeliveryObserver observer, MessageReference ref) { this(observer, ref, false); } |
this(observer, ref, false); | this(null, null, false); | public SimpleDelivery(DeliveryObserver observer, MessageReference ref) { this(observer, ref, false); } |
public InternalWorkflowException(String s, Exception rootCause) { super(s); this.rootCause = rootCause; | public InternalWorkflowException() { | public InternalWorkflowException(String s, Exception rootCause) { super(s); this.rootCause = rootCause; } |
public Exception getRootCause() { | public Throwable getRootCause() { | public Exception getRootCause() { return rootCause; } |
if (bx.absolute) { | if (bx.getStyle().isAbsolute()) { | public static Box findElementBox(Box box, int x, int y, BlockFormattingContext bfc) {//TODO: why is this used? //A better way? should be in a render util? //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); if (box == null) { return... |
if (box.absolute) { | if (box.getStyle().isAbsolute()) { | public static Box findElementBox2(Box box, int x, int y, BlockFormattingContext bfc) { //Uu.p("find element box: " + x + " " + y + " " + box + " " + bfc); //if(box.element != null) { Uu.p("elem : " + box.element.getNodeName()); } // skip if no box to look at if (box == null) { ... |
public static void layout( Level level, String msg ) { log( LAYOUT, level, msg ); } | public static void layout(String msg) { layout(Level.INFO, msg); } | public static void layout( Level level, String msg ) { log( LAYOUT, level, msg ); } |
defaults.put("TabbedPane.selected", new ColorUIResource(200, 221, 242)); defaults.put("TabbedPane.unselectedBackground", SECONDARY3); | public void addCustomEntriesToTable(UIDefaults defaults) { defaults.put("Button.rollover", Boolean.TRUE); } | |
super(r, g, b, 255); | super(r, g, b); | public ColorUIResource(int r, int g, int b) { super(r, g, b, 255); } |
Uu.p("calc layout null was called"); | protected void calcLayout() { // set body box to null to trigger new layout Uu.p("calc layout null was called"); body_box = null; } | |
Uu.p("resized!"); | public void componentResized(ComponentEvent e) { Uu.p("resized!"); calcLayout(); } | |
BoxRendering.paint(c, body_box, false, false); | if(body_box != null) { BoxRendering.paint(c, body_box, false, false); } | protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ... |
calcLayout(g); | calcLayout(g,this.getSize()); | public void paintComponent(Graphics g) { if (anti_aliased) { // TODO: // ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); } if (doc == null) { return; } // if this is the first time p... |
Uu.p("set size called!"); | public void setSize(Dimension d) { XRLog.layout(Level.FINEST, "set size called"); Uu.p("set size called!"); super.setSize(d); //this.calcLayout();//this causes a second layout to be done! } | |
setMedia("screen"); | setMedia("print"); | public RenderingContext() { setMedia("screen"); setContext(new Context()); getContext().ctx = this; getContext().css = new TBStyleReference(new NaiveUserAgent()); XRLog.render("Using CSS implementation from: " + getContext().css.getClass().getName()); layout_factory = new L... |
drainDestination(cf, queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployT... | |
void setString(int parameterIndex, String x) throws SQLException; | void setString(int index, String value) throws SQLException; | void setString(int parameterIndex, String x) throws SQLException; |
String selector) | String selector, boolean noLocal) | DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector) throws JMSException; |
listenerList = new EventListenerList(); | public AbstractListModel () { } | |
public void contentsChanged(ListDataEvent event); | void contentsChanged(ListDataEvent event); | public void contentsChanged(ListDataEvent event); |
public void intervalAdded(ListDataEvent event); | void intervalAdded(ListDataEvent event); | public void intervalAdded(ListDataEvent event); |
public void intervalRemoved(ListDataEvent event); | void intervalRemoved(ListDataEvent event); | public void intervalRemoved(ListDataEvent event); |
public BasicPanel(UserAgentCallback uac) { ctx = new RenderingContext(uac); | public BasicPanel() { ctx = new RenderingContext(); | public BasicPanel(UserAgentCallback uac) { ctx = new RenderingContext(uac); init(); } |
public void setDocument(String url) { setDocument(loadDocument(url), url, new NoNamespaceHandler()); | public void setDocument(InputStream stream, String url, NamespaceHandler nsh) { Document dom = XMLResource.load(stream).getDocument(); setDocument(dom, url, nsh); | public void setDocument(String url) { setDocument(loadDocument(url), url, new NoNamespaceHandler()); } |
RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.DOCUMENT_SET)); repaint(); | if (queue != null) { queue.dispatchLayoutEvent(new ReflowEvent(ReflowEvent.DOCUMENT_SET)); } | public void setDocument(Document doc, String url, NamespaceHandler nsh) { resetScrollPosition(); this.doc = doc; //have to do this first getRenderingContext().setBaseURL(url); getContext().setNamespaceHandler(nsh); getRenderingContext().getStyleReference().setDocumentContex... |
tableBox.height += borderSpacingVertical; | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc; int col = 0; for (... | |
tableBox.rightPadding = (int) border.right() + (int) margin.right(); | tableBox.rightPadding = (int) border.right() + (int) padding.right(); | public static Box layout(LayoutContext c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // i... |
BorderPropertySet border = c.getCurrentStyle().getBorder(c); RectPropertySet padding = c.getCurrentStyle().getPaddingRect((float) oe.getWidth(), (float) oe.getWidth(), c); | private static CellBox layoutCell(LayoutContext 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); } ... | |
box.setState(box.CHILDREN_FLUX); | box.setState(Box.CHILDREN_FLUX); | public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(box.CHILDREN_FLUX); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do thi... |
box.setState(box.DONE); | box.setState(Box.DONE); | public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); box.setState(box.CHILDREN_FLUX); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do thi... |
StringBuffer textContent = null; | public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ... | |
if (anonymousCell == null) { anonymousCell = new TableCellContent(); contentList.add(anonymousCell); | String text = curr.getNodeValue(); text = WhitespaceStripper.collapseWhitespace(IdentValue.NORMAL, text, true); if (!text.equals("")) { if (anonymousCell == null) { anonymousCell = new TableCellContent(); contentList.add(anonymousCell); } anonymousCell.addChild(curr); | public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.