edu.iris.dmc.pdcc.gui
Class PdccObjectLabelMap

java.lang.Object
  extended byedu.iris.dmc.pdcc.gui.PdccObjectLabelMap

public class PdccObjectLabelMap
extends java.lang.Object

This class provides a mapping between object types and the field values they would display as a short-hand label representation for things like JTree nodes.

Version:
2004
Author:
Robert Casey, IRIS DMC

Constructor Summary
PdccObjectLabelMap()
           
 
Method Summary
static int[] getFieldLabels(int objectType)
          return an integer array of field numbers in the PdccObject that are to have their values pieced together in order for a displayed label of the PdccObject.
static java.lang.String getLabel(PdccObject obj)
          Return a String that represents an identifying label for this object and its contents.
static java.lang.String getTitle(PdccObject obj)
          Return a String that represents a long-hand title name for either the type of object this is, or the identifying contents of the object...or both.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdccObjectLabelMap

public PdccObjectLabelMap()
Method Detail

getTitle

public static java.lang.String getTitle(PdccObject obj)
Return a String that represents a long-hand title name for either the type of object this is, or the identifying contents of the object...or both. Such a title would typically appear at the top of an object display or edit panel. Return a default String if there is no specific mapping.


getLabel

public static java.lang.String getLabel(PdccObject obj)
Return a String that represents an identifying label for this object and its contents. This label would appear typically as a node label in a JTree. Return a default String if there is no specific mapping.


getFieldLabels

public static int[] getFieldLabels(int objectType)
return an integer array of field numbers in the PdccObject that are to have their values pieced together in order for a displayed label of the PdccObject. Return null if there are no field numbers to provide.



brought to you by Incorporated Research Institutions for Seismology
June 29 2006