Package ucar.unidata.idv.control
Class ControlWidget
java.lang.Object
ucar.unidata.idv.control.ControlWidget
- All Implemented Interfaces:
ActionListener
,EventListener
,Removable
- Direct Known Subclasses:
ColorTableWidget
,ContourWidget
,PlanViewControl.VerticalRangeWidget
,SelectRangeWidget
,WrapperWidget
A widget for a control.
- Version:
- $Revision: 1.15 $
- Author:
- Jeff McWhirter
-
Constructor Summary
ConstructorsConstructorDescriptionControlWidget
(DisplayControlImpl displayControl) Construct a new ControlWidget -
Method Summary
Modifier and TypeMethodDescriptionvoid
Public as a result of implementing ActionListenervoid
doRemove()
Remove the reference to the displayControlstatic List
Fill a list of widgets.void
Fill a list of widgets.static List
Fill a list of widgets.Get the DisplayControl that this widget is associated with.Get the display conventions from the contolvoid
logException
(String message, Exception exc) Utility method to log an exception.void
userMessage
(String message) Utility method to notify the user with a message
-
Constructor Details
-
ControlWidget
Construct a new ControlWidget- Parameters:
displayControl
- associated DisplayContol
-
-
Method Details
-
doRemove
public void doRemove()Remove the reference to the displayControl -
actionPerformed
Public as a result of implementing ActionListener- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
ae
- ActionEvent to act on
-
fillList
Fill a list of widgets.- Parameters:
l
- list to fillcolumns
- number of columns for layout
-
fillList
Fill a list of widgets.- Parameters:
components
- componentswidgets
- widgets for components- Returns:
- filled list
-
fillList
Fill a list of widgets.- Parameters:
widgets
- widgets to add to- Returns:
- filled list
-
getDisplayConventions
Get the display conventions from the contol- Returns:
- The
DisplayConventions
to use.
-
logException
Utility method to log an exception.- Parameters:
message
- The messageexc
- The exception
-
userMessage
Utility method to notify the user with a message- Parameters:
message
- The message
-
getDisplayControl
Get the DisplayControl that this widget is associated with.- Returns:
- the DisplayControl
-