rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
throws JMSSecurityException
throws JMSException
public ConnectionDelegate createConnectionDelegate() throws JMSSecurityException { return createConnectionDelegate(null, null); }
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException
public DurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
long id = this.getNextId();
id = this.getNextId();
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
return createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, selector, noLocal, ms, pm);
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
e.printStackTrace(); throw new MessagingJMSException("Failed to create durable subscription", e);
throw new MessagingJMSException("Failed to create durable subscription", e);
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
return createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, sel, noLocal, ms, pm);
public CoreDurableSubscription createDurableSubscription(String topicName, String clientID, String subscriptionName, String selector, ...
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName,
protected DurableSubscription createDurableSubscriptionInternal(long id, String topicName,
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
String selector,
Selector selector,
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
PersistenceManager pm) throws Exception
PersistenceManager pm) throws JMSException
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
CoreDurableSubscription subscription = new CoreDurableSubscription(id, clientID, subscriptionName, topic, selector, noLocal, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize());
DurableSubscription subscription = new DurableSubscription(id, topic, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize(), selector, noLocal, subscriptionName, clientID);
protected CoreDurableSubscription createDurableSubscriptionInternal(long id, String topicName, String clientID, String subscriptionName, ...
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal,
public Subscription createSubscription(String topicName, String selector, boolean noLocal,
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); ...
return new CoreSubscription(id, topic, selector, noLocal, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize());
return new Subscription(id, topic, ms, pm, topic.getFullSize(), topic.getPageSize(), topic.getDownCacheSize(), selector == null ? null : new Selector(selector), noLocal);
public CoreSubscription createSubscription(String topicName, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm) throws JMSException { try { long id = this.getNextId(); Topic topic = (Topic)getCoreDestinationInternal(false, topicName); ...
CoreDurableSubscription sub = (CoreDurableSubscription)iter.next();
DurableSubscription sub = (DurableSubscription)iter.next();
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
sub.subscribe();
sub.connect();
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize...
public CoreDurableSubscription getDurableSubscription(String clientID,
public DurableSubscription getDurableSubscription(String clientID,
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
CoreDurableSubscription sub = getDurableSubscription(clientID, subscriptionName);
DurableSubscription sub = getDurableSubscription(clientID, subscriptionName);
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
sub = createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, selector,
sub = createDurableSubscriptionInternal(id, topicName, clientID, subscriptionName, sel,
public CoreDurableSubscription getDurableSubscription(String clientID, String subscriptionName, MessageStore ms, ...
CoreDurableSubscription sub = getDurableSubscription(clientId, subName);
DurableSubscription sub = getDurableSubscription(clientId, subName);
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
selector,
sel,
protected List loadDurableSubscriptionsForTopic(String topicName, MessageStore ms, PersistenceManager pm) throws JMSException { try { Lis...
CoreDurableSubscription removed = (CoreDurableSubscription)subs.remove(subscriptionName);
DurableSubscription removed = (DurableSubscription)subs.remove(subscriptionName);
public boolean removeDurableSubscription(String clientID, String subscriptionName) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("removing durable subscription " + subscriptionName); } if (clientID == null) { throw new JMSException("Cli...
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize)
public CoreSubscription(long id, Topic topic, MessageStore ms, PersistenceManager pm, boolean recoverable, int fullSize, int pageSize, int downCacheSize, Filter filter)
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize); }
this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize);
super(id, ms, pm, true, recoverable, fullSize, pageSize, downCacheSize); this.topic = topic; this.filter = filter;
public CoreSubscription(long id, Topic topic, String selector, boolean noLocal, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) { this(id, topic, selector, noLocal, ms, pm, false, fullSize, pageSize, downCacheSize); }
return new SimpleDelivery(true);
return new SimpleDelivery(ms.reference(r), true);
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } Set deliveries = router.handle(sender, r, tx); // must insure that all deliveries are comp...
DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS");
protected void tearDown() throws Exception { session.flush(); session.close(); factory.close(); factory3.close(); }
if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0;
CalculatedStyle calculatedStyle = line.getStyle().getCalculatedStyle(); if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0;
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) {
if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) {
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.CENTER)) {
if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.CENTER)) {
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.JUSTIFY)) {
if (calculatedStyle.isIdent(CSSName.TEXT_ALIGN, IdentValue.JUSTIFY)) {
private static int getTextAlign(Context c, LineBox line) { if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.LEFT)) return 0; int leftover = line.getParent().contentWidth - line.contentWidth; if (c.getCurrentStyle().isIdent(CSSName.TEXT_ALIGN, IdentValue.RIGHT)) { //Uu.p...
IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION);
IdentValue decoration = ib.getStyle().getCalculatedStyle().getIdent(CSSName.TEXT_DECORATION);
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex...
CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = ib.getStyle().getCalculatedStyle();
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex...
Relative.untranslateRelative(c, true);
Relative.untranslateRelative(c, ib.getStyle().getCalculatedStyle(), true);
private static int handleInlineElementEnd(Context c, LinkedList decorations, InlineBox ib, int padX, LineBox line, LinkedList pushedStyles) { //end text decoration? IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { Tex...
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle();
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { /* CalculatedStyle style = ib.getStyle().getCalculatedStyle();
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ...
c.pushStyle(cascaded);
int parent_width = line.getParent().getWidth();
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ...
Relative.translateRelative(c, true); style = c.getCurrentStyle();
Relative.translateRelative(c, ib.getStyle().getCalculatedStyle(), true); CalculatedStyle style = ib.getStyle().getCalculatedStyle();
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ...
margin = style.getMarginWidth(parent_width, parent_width, c.getCtx());
Border margin = style.getMarginWidth(parent_width, parent_width, c.getCtx());
private static int handleInlineElementStart(Context c, CascadedStyle cascaded, LineBox line, InlineBox ib, int padX, LinkedList decorations) { CalculatedStyle style = c.getCurrentStyle(); int parent_width = line.getParent().getWidth(); //Border border = style.getBorderWidth(c.getCtx()); ...
if (ib.pushstyles != null) { for (Iterator i = ib.pushstyles.iterator(); i.hasNext();) { StylePush sp = (StylePush) i.next(); Element e = sp.getElement(); CascadedStyle cascaded; if (e == null) { cascaded = CascadedStyle.emptyCascadedStyle; } else { cascaded = c.getCss().getCascadedStyle(e, restyle); } if (pushedStyles...
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
padX = handleInlineElementStart(c, cascaded, line, ib, padX, decorations);
padX = handleInlineElementStart(c, line, ib, padX, decorations);
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
} } if (ib.floated) {
if (ib.getStyle().isFloated()) {
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
c.pushStyle(c.getCss().getCascadedStyle(ib.element, restyle));
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
c.popStyle();
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
if (ib.popstyles != 0) { for (int i = 0; i < ib.popstyles; i++) { padX = handleInlineElementEnd(c, decorations, ib, padX, line, pushedStyles); } }
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul...
BlockBox block = null; if (box instanceof BlockBox) { block = (BlockBox) box; }
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because blocks may be in...
if (child.absolute) {
if (child.getStyle().isAbsolute() || child.getStyle().isFixed()) {
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge...
if (c.hasFirstLineStyles() && pushedStyles == null) { pushedStyles = new LinkedList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { CascadedStyle firstLineStyle = (CascadedStyle) i.next(); padX = handleInlineElementStart(c, firstLineStyle, line, box, padX, decorations); } }
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge...
for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext(); i.next()) { padX = handleInlineElementEnd(c, decorations, lastInline, padX, line, null); }
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge...
c.getInlineBorders().addAll(pushedBorders); for (Iterator i = pushedStyles.iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION); if (decoration != IdentValue.NONE) { decorations.addLast(new TextDecoration(decoration, 0, c.getCur...
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("ge...
c.getGraphics().setFont(c.getCurrentFont());
c.getGraphics().setFont(inline.getStyle().getFont(c.getCtx()));
public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(c.getCurrentFont(...
c.getGraphics().setColor(c.getCurrentStyle().getColor());
c.getGraphics().setColor(inline.getStyle().getCalculatedStyle().getColor());
public static void paintText(Context c, int ix, int iy, InlineTextBox inline, LineMetrics lm) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(c.getCurrentFont(...
null, null, ms, tl);
null, null, false, ms, tl);
public void setUp() throws Exception { super.setUp(); tl = new JDBCTransactionLog(sc.getDataSource(), sc.getTransactionManager()); tl.start(); ms = new PersistentMessageStore("persistent-message-store", tl); tr = new TransactionRepository(tl); channel = new DurableSubscription("client...
ms = new PagingMessageStore("s47");
ms = new SimpleMessageStore("s47");
public void setUp() throws Exception { super.setUp(); InitialContext ic = new InitialContext(); tr = new TransactionRepository(); ic.close(); msPersistenceManagerDelegate = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManag...
public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception
public JDBCTransactionLog() throws Exception
public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); }
this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties();
this(null, null);
public JDBCTransactionLog(DataSource ds, TransactionManager tm) throws Exception { this.ds = ds; this.tm = tm; bytesStoredAs = BYTES_AS_BYTES; sqlProperties = new Properties(); }
super(clientID + "." + subName, topic, selector, ms, tl);
super(clientID + "." + subName, topic, selector, noLocal, ms, tl);
public DurableSubscription(String clientID, String subName, Topic topic, String selector, MessageStoreDelegate ms, TransactionLogDelegate tl) { super(clientID + "." + subName, topic, selector, ms, tl); this.subName = subName; }
final PointerInterpreter interpreter = getPointerInterpreter(); if (interpreter != null) { interpreter.reset(); }
protected synchronized void startDevice() throws DriverException { irq = bus.claimResources(getDevice(), MOUSE_IRQ); try { // Set the mode setEnabled(true); } catch (DeviceException ex) { throw new DriverException("Cannot enable keyboard", ex); } super.startDevice(); // Make sure all queues are empty bus....
final boolean writeMouseCommand(int cmd) {
final boolean writeMouseCommand(int cmd) throws DeviceException {
final boolean writeMouseCommand(int cmd) { // First clear the mouse channel, otherwise we might read // old data back mouseChannel.clear(); // Transmit the command writeController(CCMD_WRITE_MOUSE); writeData(cmd); int data; try { data = mouseChannel.read(50); } catch (IOException ex) { log.debug("IOExcep...
public int read(long timeout) throws IOException, TimeoutException, InterruptedException {
public int read(ByteBuffer dst) throws IOException {
public int read(long timeout) throws IOException, TimeoutException, InterruptedException { if (!isOpen()) { throw new ClosedChannelException(); } return queue.pop(timeout) & 0xFF; }
return queue.pop(timeout) & 0xFF;
int i; for (i = 0; i < dst.remaining(); i++) { dst.put(queue.pop()); } return i;
public int read(long timeout) throws IOException, TimeoutException, InterruptedException { if (!isOpen()) { throw new ClosedChannelException(); } return queue.pop(timeout) & 0xFF; }
final int getMode() {
final int getMode() throws DeviceException {
final int getMode() { writeController(CCMD_READ_MODE); return readData(); }
final boolean writeMouseCommands(int[] cmds) {
final boolean writeMouseCommands(int[] cmds) throws DeviceException {
final boolean writeMouseCommands(int[] cmds) { boolean ok = true; for (int i = 0; i < cmds.length; i++) { ok &= writeMouseCommand(cmds[i]); } return ok; }
channel = getChannel(); interpreter = createInterpreter();
this.channel = getChannel(); this.interpreter = createInterpreter(); try { setRate(80); } catch (DeviceException ex) { log.error("Cannot set default rate", ex); }
protected synchronized void startDevice() throws DriverException { final Device dev = getDevice(); log.info("Starting " + dev.getId()); channel = getChannel(); interpreter = createInterpreter(); // start the deamon anyway, so we can register a mouse later daemon = new PointerDaemon(dev.getId() + "-daemon"); dae...
private final void processQueues() {
final void processQueues() {
private final void processQueues() { int status; while (((status = readStatus()) & AUX_STAT_OBF) != 0) { final int data = readData(); // determine which driver shall handle the scancode final PS2ByteChannel channel; if ((status & STAT_MOUSE_OBF) != 0) { channel = mouseChannel; } else { channel = kbCh...
try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); Map transientVars = new HashMap(); Collection currentSteps = store.findCurrentSteps(id); populateTransient...
return getSecurityPermissions(id, null);
public List getSecurityPermissions(long id) { try { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); PropertySet ps = store.getPropertySet(id); ...
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");
focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText");
public void installDefaults(AbstractButton b) { super.installDefaults(b); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getP...
int index1 = e.getFirstIndex(); int index2 = e.getLastIndex(); Rectangle damaged = getCellBounds(list, index1, index2); list.repaint(damaged);
public void valueChanged(ListSelectionEvent e) { // TODO: Implement this properly. }
int h = getRowHeight(row);
h += cellHeights[row];
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; }
return row; y0 -= h;
{ index = row; break;
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; }
return -1;
} } return index;
protected int convertYToRow(int y0) { for (int row = 0; row < cellHeights.length; ++row) { int h = getRowHeight(row); if (y0 < h) return row; y0 -= h; } return -1; }
return -1; else if (cellHeight != -1) return cellHeight;
height = -1;
protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; }
return cellHeights[row];
height = cellHeights[row]; } return height;
protected int getRowHeight(int row) { if (row < 0 || row >= cellHeights.length) return -1; else if (cellHeight != -1) return cellHeight; else return cellHeights[row]; }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap");
InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap");
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ...
ActionMap parentActionMap = new ActionMap();
ActionMap parentActionMap = new ActionMapUIResource();
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap focusInputMap = (InputMap)defaults.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap ...
componentListener = new ComponentHandler();
protected void installListeners() { if (focusListener == null) focusListener = createFocusListener(); list.addFocusListener(focusListener); if (listDataListener == null) listDataListener = createListDataListener(); list.getModel().addListDataListener(listDataListener); if (listSelectionListe...
Dimension listDim2 = list.getSize();
public int locationToIndex(JList list, Point location) { int layoutOrientation = list.getLayoutOrientation(); int index = -1; switch (layoutOrientation) { case JList.VERTICAL: index = convertYToRow(location.y); break; case JList.HORIZONTAL_WRAP: // determine visible rows ...
paintBackground(g, list);
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe...
for (int row = 0; row < nrows; ++row)
int startIndex = list.locationToIndex(new Point(clip.x, clip.y)); int endIndex = list.locationToIndex(new Point(clip.x + clip.width, clip.y + clip.height)); for (int row = startIndex; row <= endIndex; ++row)
public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe...
UIDefaults defaults = UIManager.getLookAndFeelDefaults();
protected void uninstallDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(null); list.setBackground(null); list.setSelectionForeground(null); list.setSelectionBackground(null); }
if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1)
ListCellRenderer rend = list.getCellRenderer(); int fixedCellHeight = list.getFixedCellHeight(); if (fixedCellHeight > 0)
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ...
ListCellRenderer rend = list.getCellRenderer(); for (int i = 0; i < nrows; ++i) { Component flyweight = rend.getListCellRendererComponent(list, list.getModel() .getElementAt(i), 0, false, false); Dimension dim = flyweight.getPreferredSize(); cellHeights[i] = dim.height; cellHeight = (cellHeight * i + cellHeights[i]) /...
cellHeight = fixedCellHeight; cellHeights = null;
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ...
cellHeight = list.getFixedCellHeight(); cellWidth = list.getFixedCellWidth();
cellHeight = -1; for (int i = 0; i < nrows; ++i) { Component flyweight = rend.getListCellRendererComponent(list, list.getModel().getElementAt(i), i, list.isSelectedIndex(i), list.getSelectionModel().getAnchorSelectionIndex() == i); Dimension dim = flyweight.getPreferredSize(); cellHeights[i] = dim.height; } } int fix...
protected void updateLayoutState() { int nrows = list.getModel().getSize(); cellHeight = -1; cellWidth = -1; if (cellHeights == null || cellHeights.length != nrows) cellHeights = new int[nrows]; if (list.getFixedCellHeight() == -1 || list.getFixedCellWidth() == -1) { ListCellRenderer ...
{ return mode; }
{ return selectionMode; }
public int getSelectionMode() { return mode; }
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages)
public InMemoryMessageStore(Serializable storeID)
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); }
this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized");
this(storeID, false);
public InMemoryMessageStore(Serializable storeID, boolean acceptReliableMessages) { this.storeID = storeID; this.acceptReliableMessages = acceptReliableMessages; messageRefs = new ConcurrentReaderHashMap(); messages = new ConcurrentReaderHashMap(); log.debug(this + " initialized"); }
protected MessageReference createReference(Routable r)
protected MessageReference createReference(Message m)
protected MessageReference createReference(Routable r) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log...
Object id = r.getMessageID(); messages.remove(id); MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log.trace("added message and reference to memory cache for " + r.getMessageID()); }
MessageReference ref = new WeakMessageReference(m, this); messages.put(m.getMessageID(), new MessageHolder(ref, m)); if (log.isTraceEnabled()) { log.trace("added message and reference to memory cache for " + m.getMessageID()); }
protected MessageReference createReference(Routable r) { Object id = r.getMessageID(); messages.remove(id); // TODO Why? MessageReference ref = new WeakMessageReference((Message)r, this); messageRefs.put(id, new WeakReference(ref)); messages.put(id, r); if (log.isTraceEnabled()) { log...
WeakReference ref = (WeakReference)messageRefs.get(messageID); MessageReference mref = ref == null ? null : (MessageReference)ref.get();
MessageHolder holder = (MessageHolder)messages.get(messageID); MessageReference mref = holder == null ? null : holder.ref;
public MessageReference getReference(Serializable messageID) { WeakReference ref = (WeakReference)messageRefs.get(messageID); MessageReference mref = ref == null ? null : (MessageReference)ref.get(); if (log.isTraceEnabled()) { log.trace("getting reference for message ID: " + messageID + " from memo...
ref = createReference(r);
ref = createReference((Message)r);
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("routable " + r + " is already a reference"); } return (MessageReference)r; } if (r.isReliable() && !acceptReliableMessages) { throw new IllegalStateExcepti...
messageRefs.remove(ref.getMessageID()); messages.remove(ref.getMessageID());
messages.remove(ref.getMessageID());
public void remove(MessageReference ref) throws Throwable { //Nothing is referencing the message reference any more so we can remove it // and the message from the maps if (log.isTraceEnabled()) { log.trace("removing " + ref.getMessageID() + " from memory cache"); } messageRefs.remove(ref...
public WeakMessageReference(Message m, InMemoryMessageStore ms)
public WeakMessageReference()
public WeakMessageReference(Message m, InMemoryMessageStore ms) { this(m.getMessageID(), m.isReliable(), m.getExpiration(), m.getTimestamp(), m.getHeaders(), m.isRedelivered(), m.getPriority(), ms); for(Iterator i = m.getHeaderNames().iterator(); i.hasNext(); ) { String name = (String)i.next...
this(m.getMessageID(), m.isReliable(), m.getExpiration(), m.getTimestamp(), m.getHeaders(), m.isRedelivered(), m.getPriority(), ms); for(Iterator i = m.getHeaderNames().iterator(); i.hasNext(); ) { String name = (String)i.next(); putHeader(name, m.getHeader(name)); } ref = new WeakReference(m);
if (log.isTraceEnabled()) { log.trace("Creating using default constructor"); }
public WeakMessageReference(Message m, InMemoryMessageStore ms) { this(m.getMessageID(), m.isReliable(), m.getExpiration(), m.getTimestamp(), m.getHeaders(), m.isRedelivered(), m.getPriority(), ms); for(Iterator i = m.getHeaderNames().iterator(); i.hasNext(); ) { String name = (String)i.next...
setTolerance(2);
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); ...
StepCell step = new StepCell(descriptor);
StepCell step = CellFactory.createStep((WorkflowDescriptor)descriptor.getParent(), descriptor, getWorkflowGraphModel(), null);
public void addStepDescriptor(StepDescriptor descriptor) { StepCell step = new StepCell(descriptor); if(layout != null) { double[] bounds = layout.getBounds(step.getId(), "StepCell"); if(bounds != null) { Rectangle2D rect = new Rectangle(); rect.setRect(bounds[0], bounds[1], bou...
if(step.getChildCount() == 0) { WorkflowPort port = new WorkflowPort(); step.add(port); } } else {
public void addStepDescriptor(StepDescriptor descriptor) { StepCell step = new StepCell(descriptor); if(layout != null) { double[] bounds = layout.getBounds(step.getId(), "StepCell"); if(bounds != null) { Rectangle2D rect = new Rectangle(); rect.setRect(bounds[0], bounds[1], bou...
getWorkflowGraphModel().insertStepCell(step, null, null, null);
public void addStepDescriptor(StepDescriptor descriptor) { StepCell step = new StepCell(descriptor); if(layout != null) { double[] bounds = layout.getBounds(step.getId(), "StepCell"); if(bounds != null) { Rectangle2D rect = new Rectangle(); rect.setRect(bounds[0], bounds[1], bou...
public boolean hasMore() throws NamingException;
boolean hasMore() throws NamingException;
public boolean hasMore() throws NamingException;
public Object next() throws NamingException;
Object next() throws NamingException;
public Object next() throws NamingException;
public boolean isCaseIgnored();
boolean isCaseIgnored();
public boolean isCaseIgnored();
public NamingEnumeration getAll();
NamingEnumeration getAll();
public NamingEnumeration getAll();
public NamingEnumeration getIDs();
NamingEnumeration getIDs();
public NamingEnumeration getIDs();
public Attribute put(Attribute attr);
Attribute put(String attrID, Object val);
public Attribute put(Attribute attr);
public JBossObjectMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders, Serializable payload, String jmsType, Object correlationID, boolean destinationIsQueue, String destination, boolean replyToIsQueue, String replyTo, String connectionID, Map jm...
public JBossObjectMessage() {
public JBossObjectMessage(String messageID, boolean reliable, long expiration, long timestamp, int priority, int deliveryCount, Map coreHeaders...