Package org.oddjob
Interface Iconic
- All Known Implementing Classes:
AndState,AntJob,ArchiveBrowserJob,ArchiveJob,BaseComponent,BasePrimary,BaseWrapper,BasicBusService,BuildOddball,CascadeJob,CascadeJobDeprecated,ChooseFile,ClientBase,ConfirmationJob,ConsumerWrapper,DependsJob,EqualsState,EventJobBase,EventServiceBase,EventWatchComponent,ExecBase,ExecJob,FlagState,ForEachJob,ForEvents,GrabJob,IconHelper,IconicHandlerFactory.ClientIconicHandler,IfJob,InputJob,InvokeJob,JavaJob,JMXClientJob,JMXServiceJob,JobFolder,JobWrapper,JoinJob,ListSource,MirrorState,MultiExplorerLauncher,Oddjob,OddjobExplorer,OddjobPanel,OrState,ParallelJob,PropertiesJob,PropertiesJobBase,RepeatJob,ResetJob,Resets,Retry,RMIRegistryJob,RunJob,ScheduleBase,ScriptJob,SequentialJob,SerializableJob,ServicesJob,ServiceWrapper,SetJob,SimpleDomainNode,SimpleJob,SimpleMBeanNode,SimpleService,SimultaneousStructural,SplitDestinations,SshSequenceJob,StartJob,StateExpressionJob,StateReflector,StopJob,StreamWatcher,StructuralJob,SwitchJob,TaskExecutionService,TaskRequest,Timer,TimerBase,Trigger,Trigger,VariablesJob,WaitJob,WebClientJob,When
public interface Iconic
An implementing class is able notify a visual display about
the icon and tool tip to associate with the object.
Icon notifications are strings, which the client may then 'look up'. This allows the client to store an icon locally thus reducing network traffic. This does limit the object to not changing the icon for a paticular id after startup.
- Author:
- Rob Gordon.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddIconListener(IconListener listener) Add a listener.Return the Icon Image Data.voidremoveIconListener(IconListener listener) Remove a listener.
-
Method Details
-
iconForId
Return the Icon Image Data.- Parameters:
id- The icon id.- Returns:
- The Icon Image Data or null if it doesn't exist.
-
addIconListener
Add a listener.- Parameters:
listener- The IconListener.
-
removeIconListener
Remove a listener.- Parameters:
listener- The IconListener.
-