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 TypeMethodDescriptionvoidPublic as a result of implementing ActionListenervoiddoRemove()Remove the reference to the displayControlstatic ListFill a list of widgets.voidFill a list of widgets.static ListFill a list of widgets.Get the DisplayControl that this widget is associated with.Get the display conventions from the contolvoidlogException(String message, Exception exc) Utility method to log an exception.voiduserMessage(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:
actionPerformedin 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
DisplayConventionsto 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
-