|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTable org.tastybug.bugwerk.bugtrail.widget.queue.TicketQueueTable
public class TicketQueueTable
This table shows the content of a TicketQueue
, listing all
contained Ticket
instances.
The table is a QueueWorker
implementation and thus listens for
activity on the queue, displaying changes upon necessity.
Use it like this:
TicketQueueTable table = new TicketQueueTable(); table.connectQueue(Adapters.getAdapter("myProject").getTicketQueue()); // get informed about ticket selections: table.getSelectionModel().addListSelectionListener(yourSelectionListener);
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JTable |
---|
JTable.AccessibleJTable, JTable.PrintMode |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Nested classes/interfaces inherited from interface org.tastybug.bugwerk.blueprint.event.TicketQueueChangeListener |
---|
TicketQueueChangeListener.TicketQueueEvent |
Nested classes/interfaces inherited from interface org.tastybug.bugwerk.blueprint.event.TicketChangeListener |
---|
TicketChangeListener.IncidentEvent, TicketChangeListener.TicketChangeEvent |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TicketQueueTable()
Initialises the table, using an empty model that is replaced as soon as a ticket queue is connected. |
Method Summary | |
---|---|
void |
addQueueWorkerListener(QueueWorkerListener qwListener)
Does nothing, you cannot listen at this worker. |
void |
connectQueue(TicketQueue queue)
Connects a ticket queue; results in the (re-)creation of the table model. |
void |
fireIncidentProcessedEvent(Incident arg0,
boolean arg1,
String arg2)
Does nothing. |
void |
fireTicketProcessedEvent(Ticket arg0,
boolean arg1,
String arg2)
Does nothing. |
QueueWorkerListener[] |
getQueueWorkerListeners()
Returns always an empty array as you cannot listen at this worker. |
void |
performIncidentAddedEvent(TicketChangeListener.IncidentEvent event)
Updates table model and UI. |
void |
performIncidentRemovedEvent(TicketChangeListener.IncidentEvent event)
Updates table model and UI. |
void |
performTicketAddedEvent(TicketQueueChangeListener.TicketQueueEvent event)
Updates table model and UI. |
void |
performTicketChangedEvent(TicketChangeListener.TicketChangeEvent event)
Updates table model and UI. |
void |
performTicketRemovedEvent(TicketQueueChangeListener.TicketQueueEvent event)
Updates table model and UI. |
void |
processQueue(boolean isUserDriven)
Updates table model and UI. |
boolean |
removeQueueWorkerListener(QueueWorkerListener qwListener)
Returns always false as you cannot listen at this worker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.tastybug.bugwerk.bugtrap.base.worker.QueueWorker |
---|
getName |
Constructor Detail |
---|
public TicketQueueTable()
Method Detail |
---|
public void performTicketRemovedEvent(TicketQueueChangeListener.TicketQueueEvent event)
performTicketRemovedEvent
in interface TicketQueueChangeListener
TicketQueueChangeListener.performTicketRemovedEvent(org.tastybug.bugwerk.blueprint.event.TicketQueueChangeListener.TicketQueueEvent)
public void performTicketAddedEvent(TicketQueueChangeListener.TicketQueueEvent event)
performTicketAddedEvent
in interface TicketQueueChangeListener
TicketQueueChangeListener.performTicketAddedEvent(org.tastybug.bugwerk.blueprint.event.TicketQueueChangeListener.TicketQueueEvent)
public void performIncidentRemovedEvent(TicketChangeListener.IncidentEvent event)
performIncidentRemovedEvent
in interface TicketChangeListener
TicketChangeListener.performIncidentRemovedEvent(org.tastybug.bugwerk.blueprint.event.TicketChangeListener.IncidentEvent)
public void performIncidentAddedEvent(TicketChangeListener.IncidentEvent event)
performIncidentAddedEvent
in interface TicketChangeListener
TicketChangeListener.performIncidentAddedEvent(org.tastybug.bugwerk.blueprint.event.TicketChangeListener.IncidentEvent)
public void performTicketChangedEvent(TicketChangeListener.TicketChangeEvent event)
performTicketChangedEvent
in interface TicketChangeListener
TicketChangeListener.performTicketChangedEvent(org.tastybug.bugwerk.blueprint.event.TicketChangeListener.TicketChangeEvent)
public void connectQueue(TicketQueue queue)
connectQueue
in interface QueueWorker
QueueWorker.connectQueue(org.tastybug.bugwerk.blueprint.model.TicketQueue)
public void addQueueWorkerListener(QueueWorkerListener qwListener)
addQueueWorkerListener
in interface QueueWorker
QueueWorker.addQueueWorkerListener(org.tastybug.bugwerk.bugtrap.base.worker.QueueWorkerListener)
public boolean removeQueueWorkerListener(QueueWorkerListener qwListener)
false
as you cannot listen at this worker.
removeQueueWorkerListener
in interface QueueWorker
QueueWorker.removeQueueWorkerListener(org.tastybug.bugwerk.bugtrap.base.worker.QueueWorkerListener)
public QueueWorkerListener[] getQueueWorkerListeners()
getQueueWorkerListeners
in interface QueueWorker
QueueWorker.removeQueueWorkerListener(org.tastybug.bugwerk.bugtrap.base.worker.QueueWorkerListener)
public void processQueue(boolean isUserDriven)
processQueue
in interface QueueWorker
QueueWorker.processQueue(boolean)
public void fireIncidentProcessedEvent(Incident arg0, boolean arg1, String arg2)
fireIncidentProcessedEvent
in interface QueueWorker
QueueWorker.fireIncidentProcessedEvent(org.tastybug.bugwerk.blueprint.model.Incident, boolean, java.lang.String)
public void fireTicketProcessedEvent(Ticket arg0, boolean arg1, String arg2)
fireTicketProcessedEvent
in interface QueueWorker
QueueWorker.fireTicketProcessedEvent(org.tastybug.bugwerk.blueprint.model.Ticket, boolean, java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |