Class TicketEditor

All Implemented Interfaces:
TableListener, ImageObserver, MenuContainer, Serializable, Accessible

public class TicketEditor extends JPanel implements TableListener
Ticket editor component.
                      Ticket                                    Actions                    Internal Notes
 +--------------------------------------------+-----------------------------------------+-------------------+
 | 1) Small fields | 6) Category              | 3) List of actions (single click/double | 9) Internal Notes |
 |                 +--------------------------+ click popup like tickets list view)     |                   |
 |                 | 7) Account              +-----------------------------------------+                   |
 |                 +--------------------------+ 4) If single action display, action     |                   |
 |                 | 8) Escalation            | subject and details.                    |                   |
 +-----------------+--------------------------+-----------------------------------------+                   |
 | Email Addresses                            | 5) Add Annotation / Reply               |                   |
 +--------------------------------------------+                                         |                   |
 | Phone Numbers                              |                                         |                   |
 +--------------------------------------------+                                         |                   |
 | 2) Ticket Subject and details (scrollable) |                                         |                   |
 +--------------------------------------------+-----------------------------------------+-------------------+

 Category (using ticket_brand_categories) (6 - JTree)
 D Account (7 - JTree)
 D Brand (changeable?) (1)
 Escalation (8 - JTree)
 Escalate/de-escalate buttons (8 - below JTree)
 Assignment (1)
 Type (1)
 D Status (with timeout) (1)
 D Ticket Number (1)
 D Open Date (1)
 D Opened By (1)
 Email Addresses (?)
 Phone Numbers (?)
 Client Priority (1)
 Admin Priority (1)
 Language (1)
 From Address (2)
 Summary (2)
 Details (2)
 Raw Email (2 - popup)
 Internal Notes (9 - how to update between users across network?)
 Actions (3)
     Time (3, 4)
     Person (3, 4)
     Type (3, 4)
     From Address (4)
     Summary (4)
     Details (4)
     Raw Email (4 - popup)
 Add Annotation (5)
 
Author:
AO Industries, Inc.
See Also:
  • Constructor Details

  • Method Details

    • showTicket

      public void showTicket(AoservConnector requestConn, Integer requestedTicketId)
      Shows the specified ticket or empty if null.

      This may be called by any thread, if called by the Swing event dispatch thread, it will recall itself in the background using ExecutorService to retrieve data.

      If the ticket is the same as the one currently opened (same ID), then this call has no affect.

      Should only display complete information:

      • If ticket is not null, should set visibility to true when ticket fully loaded.
      • If ticket is null, should set visibility to false before clearing fields.

      When null, all table listeners are removed.

    • tableUpdated

      public void tableUpdated(Table<?> table)
      Specified by:
      tableUpdated in interface TableListener