org.netbeans.spi.debugger.ui/1 2.27.1

org.netbeans.spi.debugger.ui
Class AttachType

java.lang.Object
  extended by org.netbeans.spi.debugger.ui.AttachType

public abstract class AttachType
extends Object

Support for "Attach ..." dialog. Represents one type of attaching.


Nested Class Summary
static interface AttachType.Registration
          Declarative registration of an AttachType implementation.
 
Constructor Summary
AttachType()
           
 
Method Summary
 Controller getController()
          Return the implementation of Controller interface.
It's not desired to implement the Controller interface by JComponent returned from getCustomizer() method, because of the clash of Controller.isValid() method with Component.isValid().
abstract  JComponent getCustomizer()
          Returns visual customizer for this Attach Type.
 String getTypeDisplayName()
          Provide the display name of this attach type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachType

public AttachType()
Method Detail

getTypeDisplayName

public String getTypeDisplayName()
Provide the display name of this attach type. The return value is read from "displayName" attribute of the registry file when this implementation is registered via AttachType.Registration annotation. Therefore in this case the implementation should NOT override this method as it's not called.

Returns:
display name of this Attach Type

getCustomizer

public abstract JComponent getCustomizer()
Returns visual customizer for this Attach Type.
 Customizer can not implement the Controller interface any more,
 due to a clash of Controller.isValid() method with
 Component.isValid().
 Override getController() method instead.
 
The customizer can provide help by implementing HelpCtx.Provider

Returns:
visual customizer for this Attach Type

getController

public Controller getController()
Return the implementation of Controller interface.
It's not desired to implement the Controller interface by JComponent returned from getCustomizer() method, because of the clash of Controller.isValid() method with Component.isValid(). An explicit implementation should be returned by overriding this method. The default implementation returns null, in which case no Controller is used.

Returns:
Controller implementation or null.
Since:
2.14

org.netbeans.spi.debugger.ui/1 2.27.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.