Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.dialogs
Class SystemRenameTableRow

java.lang.Object
  extended bycom.ibm.etools.systems.core.ui.dialogs.SystemDeleteTableRow
      extended bycom.ibm.etools.systems.core.ui.dialogs.SystemRenameTableRow

public class SystemRenameTableRow
extends SystemDeleteTableRow

Represents one row in the table in the SystemRenameDialog dialog.


Field Summary
static String copyright
           
 
Constructor Summary
SystemRenameTableRow(Object element, int rowNbr)
          Constructor
 
Method Summary
 String getCanonicalNewName()
          Get the canonical name of this row.
 boolean getError()
          Return true if this row is currently in error
 SystemMessage getErrorMessage()
          Return text of error if this row is currently in error
 int getNameLengthLimit()
          Return the name length limit, if available via the name validator supplied by the adapter.
 ISystemValidator getNameValidator()
          Return the validator for the new name,as supplied by the adaptor for this element type.
 String getNewName()
          Return the new name for this element, as set by setNewName
 Object getParent()
          Get the parent of this remote object that is being renamed
 ValidatorUniqueString getUniqueNameValidator()
          Return the uniqueness validator for the new name,as supplied by the call to setUniqueNameValidator
 boolean newNameEqualsOldName()
          Compares the given new name to this row's current name, taking into consideration case if appropriate.
 void setErrorMessage(SystemMessage errorMsg)
          Set error message for this row.
 void setNameValidator(ISystemValidator nameValidator)
          Set the validator for the new name,as supplied by the adaptor for name checking.
 void setNewName(String name)
          Set the new name for this element.
 void setParent(Object parent)
          Set the parent of this remote object that is being renamed
 void setUniqueNameValidator(ValidatorUniqueString uniqueNameValidator)
          Set the uniqueness validator for the new name,as supplied by the remote adaptor.
 String toString()
           
static String trimTrailing(String text)
          Trim leading blanks
 
Methods inherited from class com.ibm.etools.systems.core.ui.dialogs.SystemDeleteTableRow
getAdapter, getAdapter, getElement, getImageDescriptor, getName, getRemoteAdapter, getRemoteAdapter, getRowNumber, getType, isRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemRenameTableRow

public SystemRenameTableRow(Object element,
                            int rowNbr)
Constructor

Parameters:
element - that is being displayed in the tree, and which the user selected the rename action. This represents a single item.
Method Detail

setNewName

public void setNewName(String name)
Set the new name for this element. Called by the CellModifier for the rename dialog.


trimTrailing

public static String trimTrailing(String text)
Trim leading blanks


getNewName

public String getNewName()
Return the new name for this element, as set by setNewName


getParent

public Object getParent()
Get the parent of this remote object that is being renamed


setParent

public void setParent(Object parent)
Set the parent of this remote object that is being renamed


getCanonicalNewName

public String getCanonicalNewName()
Get the canonical name of this row. Sometimes, the name alone is not enough to do uniqueness checking on. For example, two connections or filter pools can have the same name if they are in different profiles. Two iSeries QSYS objects can have the same name if their object types are different.

This method returns a name that can be used for uniqueness checking because it is qualified sufficiently to make it unique.

Defers to the object's adapter


newNameEqualsOldName

public boolean newNameEqualsOldName()
Compares the given new name to this row's current name, taking into consideration case if appropriate. Defers to the object's adapter


getNameLengthLimit

public int getNameLengthLimit()
Return the name length limit, if available via the name validator supplied by the adapter. Returns -1 if not available.


setNameValidator

public void setNameValidator(ISystemValidator nameValidator)
Set the validator for the new name,as supplied by the adaptor for name checking. Overrides the default which is to query it from the object's adapter.


setUniqueNameValidator

public void setUniqueNameValidator(ValidatorUniqueString uniqueNameValidator)
Set the uniqueness validator for the new name,as supplied by the remote adaptor.


getNameValidator

public ISystemValidator getNameValidator()
Return the validator for the new name,as supplied by the adaptor for this element type.

By default queries it from the object's adapter, unless setNameValidator has been called.


getUniqueNameValidator

public ValidatorUniqueString getUniqueNameValidator()
Return the uniqueness validator for the new name,as supplied by the call to setUniqueNameValidator


getError

public boolean getError()
Return true if this row is currently in error


getErrorMessage

public SystemMessage getErrorMessage()
Return text of error if this row is currently in error


setErrorMessage

public void setErrorMessage(SystemMessage errorMsg)
Set error message for this row. Pass null to clear it.


toString

public String toString()
Overrides:
toString in class SystemDeleteTableRow

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.