public class ControlWidget extends java.lang.Object implements java.awt.event.ActionListener, Removable
Constructor and Description |
---|
ControlWidget(DisplayControlImpl displayControl)
Construct a new ControlWidget
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Public as a result of implementing ActionListener
|
void |
doRemove()
Remove the reference to the displayControl
|
static java.util.List |
fillList(java.util.List widgets)
Fill a list of widgets.
|
void |
fillList(java.util.List l,
int columns)
Fill a list of widgets.
|
static java.util.List |
fillList(java.util.List components,
java.util.List widgets)
Fill a list of widgets.
|
DisplayControlImpl |
getDisplayControl()
Get the DisplayControl that this widget is associated with.
|
DisplayConventions |
getDisplayConventions()
Get the display conventions from the contol
|
void |
logException(java.lang.String message,
java.lang.Exception exc)
Utility method to log an exception.
|
void |
userMessage(java.lang.String message)
Utility method to notify the user with a message
|
public ControlWidget(DisplayControlImpl displayControl)
displayControl
- associated DisplayContolpublic void doRemove()
public void actionPerformed(java.awt.event.ActionEvent ae)
actionPerformed
in interface java.awt.event.ActionListener
ae
- ActionEvent to act onpublic void fillList(java.util.List l, int columns)
l
- list to fillcolumns
- number of columns for layoutpublic static java.util.List fillList(java.util.List components, java.util.List widgets)
components
- componentswidgets
- widgets for componentspublic static java.util.List fillList(java.util.List widgets)
widgets
- widgets to add topublic DisplayConventions getDisplayConventions()
DisplayConventions
to use.public void logException(java.lang.String message, java.lang.Exception exc)
message
- The messageexc
- The exceptionpublic void userMessage(java.lang.String message)
message
- The messagepublic DisplayControlImpl getDisplayControl()