it.tidalwave.role
Interface MutableDisplayable

Package class diagram package MutableDisplayable
All Superinterfaces:
Displayable
All Known Subinterfaces:
MutableLocalizedDisplayable
All Known Implementing Classes:
DefaultMutableDisplayable

public interface MutableDisplayable
extends Displayable

A specialized Displayable which is mutable and fires PropertyChangeEvents.

Version:
$Id$
Author:
Fabrizio Giudici
Status: stable API

Field Summary
static Class<MutableDisplayable> MutableDisplayable
           
static String PROP_DISPLAY_NAME
           
static String PROP_DISPLAY_NAMES
           
 
Fields inherited from interface it.tidalwave.role.Displayable
DEFAULT, Displayable
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Registers a PropertyChangeListener.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Unregisters a PropertyChangeListener.
 void setDisplayName(String displayName)
          Sets the display name in Locale.ENGLISH.
 void setDisplayName(String displayName, Locale locale)
          Sets the display name in the given Locale.
 void setDisplayNames(Map<Locale,String> displayNames)
          Sets a bag of display names for a number of Locales.
 
Methods inherited from interface it.tidalwave.role.Displayable
getDisplayName
 

Field Detail

PROP_DISPLAY_NAME

static final String PROP_DISPLAY_NAME
See Also:
Constant Field Values

PROP_DISPLAY_NAMES

static final String PROP_DISPLAY_NAMES
See Also:
Constant Field Values

MutableDisplayable

static final Class<MutableDisplayable> MutableDisplayable
Method Detail

setDisplayName

void setDisplayName(@Nonnull
                    String displayName)
Sets the display name in Locale.ENGLISH.

Parameters:
displayName - the display name

setDisplayName

void setDisplayName(@Nonnull
                    String displayName,
                    @Nonnull
                    Locale locale)
Sets the display name in the given Locale.

Parameters:
displayName - the display name
locale - the locale

setDisplayNames

void setDisplayNames(@Nonnull
                     Map<Locale,String> displayNames)
Sets a bag of display names for a number of Locales.

Parameters:
displayNames - the display names

addPropertyChangeListener

void addPropertyChangeListener(@Nonnull
                               PropertyChangeListener listener)
Registers a PropertyChangeListener.

Parameters:
listener - the listener

removePropertyChangeListener

void removePropertyChangeListener(@Nonnull
                                  PropertyChangeListener listener)
Unregisters a PropertyChangeListener.

Parameters:
listener - the listener


Copyright © 2009-2012 Tidalwave s.a.s.. All Rights Reserved.