intarsys runtime library

de.intarsys.aaa.resource
Class StaticResource

java.lang.Object
  extended by de.intarsys.aaa.resource.Resource
      extended by de.intarsys.aaa.resource.StaticResource
All Implemented Interfaces:
IResource, IPresentationSupport, Serializable

public class StaticResource
extends Resource
implements IPresentationSupport

A resource abstracted as a simple "id".

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface de.intarsys.tools.presentation.IPresentationSupport
ATTR_DESCRIPTION, ATTR_ICON, ATTR_LABEL, ATTR_TIP
 
Constructor Summary
StaticResource(String id)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          A long, descriptive string representation.
 String getIconName()
          A name for an icon.
 String getId()
           
 String getLabel()
          A short string representation (suitable for example for use with an icon or menu item).
 String getTip()
          An "intermediate" length description (suitable for example with a tooltip).
 int hashCode()
           
 void setLabel(String label)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticResource

public StaticResource(String id)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getDescription

public String getDescription()
Description copied from interface: IPresentationSupport
A long, descriptive string representation.

Specified by:
getDescription in interface IPresentationSupport
Returns:
A long, descriptive string representation.

getIconName

public String getIconName()
Description copied from interface: IPresentationSupport
A name for an icon.

Specified by:
getIconName in interface IPresentationSupport
Returns:
A name for an icon.

getId

public String getId()
Specified by:
getId in interface IResource

getLabel

public String getLabel()
Description copied from interface: IPresentationSupport
A short string representation (suitable for example for use with an icon or menu item).

Specified by:
getLabel in interface IPresentationSupport
Returns:
A short string representation (suitable for example for use with an icon or menu item).

getTip

public String getTip()
Description copied from interface: IPresentationSupport
An "intermediate" length description (suitable for example with a tooltip).

Specified by:
getTip in interface IPresentationSupport
Returns:
An "intermediate" length description (suitable for example with a tooltip).

hashCode

public int hashCode()
Overrides:
hashCode in class Object

setLabel

public void setLabel(String label)

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.