Package org.scijava.widget
Interface UIComponent<C>
-
- Type Parameters:
C- The type of UI component housing the object.
- All Known Subinterfaces:
ButtonWidget<U>,ChoiceWidget<U>,ColorWidget<U>,ConsolePane<C>,DateWidget<U>,FileListWidget<U>,FileWidget<U>,InputPanel<P,W>,InputWidget<T,W>,MessageWidget<U>,NumberWidget<U>,ObjectWidget<U>,TextWidget<U>,ToggleWidget<U>
- All Known Implementing Classes:
AbstractConsolePane,AbstractInputPanel,AbstractInputWidget,AbstractUIInputWidget
public interface UIComponent<C>An interface identifying an object housed within a UI component.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CgetComponent()Gets the user interface component housing this object.Class<C>getComponentType()Gets the type of the UI component housing the object.
-
-
-
Method Detail
-
getComponent
C getComponent()
Gets the user interface component housing this object.
-
getComponentType
Class<C> getComponentType()
Gets the type of the UI component housing the object.This method is useful in case
getComponent()returns null in some circumstances. In this way, it is still possible to query the type of the UI component without forcing the conditions that instantiate it.
-
-