Package edu.tufts.hrilab.gui
Interface GuiProvider
- All Known Implementing Classes:
BeliefComponent,GoalManagerComponent,ListenerComponent,MapComponent,TradeServiceComponent
public interface GuiProvider
An interface which marks the implementing class as a component with a GUI.
Any component which provides a GUI must implement this interface so that its
adapters may be discovered at runtime by the
Handler.
For example, in an implementation called MyGuiProvider with
an adapter called MyGuiAdapter1 and MyGuiAdapter2,
the code for getHandlerClassNames() might look like this:
@Override
String[] getAdapterClassNames() {
return new String[] {
MyGuiAdapter1.class.getName(),
MyGuiAdapter2.class.getName()
};
}
-
Method Summary
Modifier and TypeMethodDescriptionString[]Provide the class names of this component's GUI adapter classes.
-
Method Details
-
getAdapterClassNames
String[] getAdapterClassNames()Provide the class names of this component's GUI adapter classes.
-