org.oddjob
Interface Iconic

All Known Implementing Classes:
AndState, AntJob, ArchiveBrowserJob, ArchiveJob, BaseComponent, BasePrimary, BaseWrapper, CascadeJob, ChooseFile, ClientBase, CollectionWrapper, ConfirmationJob, DependsJob, EqualsState, ExecJob, FlagState, ForEachJob, GrabJob, IconHelper, IfJob, InputJob, InvokeJob, JMXClientJob, JMXServiceJob, JobFolder, JoinJob, MegaBeanBus, MirrorState, MultiExplorerLauncher, Oddjob, OddjobExplorer, OddjobPanel, OrState, ParallelJob, PropertiesJob, PropertiesJobBase, RepeatJob, ResetJob, Resets, Retry, RMIRegistryJob, RunJob, RunnableWrapper, ScheduleBase, ScriptJob, SequentialJob, SerializableJob, ServicesJob, ServiceWrapper, SetJob, SimpleDomainNode, SimpleJob, SimpleMBeanNode, SimpleService, SimultaneousStructural, StartJob, StateReflector, StopJob, StructuralJob, Timer, TimerBase, Trigger, VariablesJob, WaitJob

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
 void addIconListener(IconListener listener)
          Add a listener.
 ImageIcon iconForId(String id)
          Return the IconTip (Icon and ToolTip pair).
 void removeIconListener(IconListener listener)
          Remove a listener.
 

Method Detail

iconForId

ImageIcon iconForId(String id)
Return the IconTip (Icon and ToolTip pair).

Parameters:
id - The icon id.
Returns:
The IconTip or null if it doesn't exist.

addIconListener

void addIconListener(IconListener listener)
Add a listener.

Parameters:
listener - The IconListener.

removeIconListener

void removeIconListener(IconListener listener)
Remove a listener.

Parameters:
listener - The IconListener.