|
||||||||||
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.TicketQueueStatisticsTable
public class TicketQueueStatisticsTable
This JTable displays the number of all- / unreported tickets in the connected ticket queue.
Internally, the table is a QueueWorker
, i.e. it listens for activity on the queue
and refreshes the content upon necessity. The table is not editable.
Use it like this:
TicketQueueStatisticsTable table = new TicketQueueStatisticsTable(); table.connectQueue(Adapters.getAdapter("myProject").getTicketQueue());
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 | |
---|---|
TicketQueueStatisticsTable()
Creates the table. |
Method Summary | |
---|---|
void |
addQueueWorkerListener(QueueWorkerListener qwListener)
Does nothing as you cannot listen to this queue worker. |
void |
connectQueue(TicketQueue queue)
Registers the queue that is to be displayed; former queue will be dropped. |
void |
fireIncidentProcessedEvent(Incident arg0,
boolean arg1,
String arg2)
Does nothing. |
void |
fireTicketProcessedEvent(Ticket arg0,
boolean arg1,
String arg2)
Does nothing. |
QueueWorkerListener[] |
getQueueWorkerListeners()
Returns an empty array. |
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)
Does nothing as you cannot listen to this queue 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 TicketQueueStatisticsTable()
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)
removeQueueWorkerListener
in interface QueueWorker
QueueWorker.removeQueueWorkerListener(org.tastybug.bugwerk.bugtrap.base.worker.QueueWorkerListener)
public QueueWorkerListener[] getQueueWorkerListeners()
getQueueWorkerListeners
in interface QueueWorker
QueueWorker.getQueueWorkerListeners()
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 |