lexx.autocomplete.java
Class PopUpMethod

java.lang.Object
  |
  +--lexx.autocomplete.java.PopUpMethod

public final class PopUpMethod
extends java.lang.Object

GUI side for displaying a method/field/interface

This class returns the panel which the JList can uses to display the method/field/interface

Copyright (c) 2002-2003

Since:
19/03/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
PopUpMethod(java.lang.Class interFace, java.lang.Class declaringClass)
          Sets up the gui for a single interface
PopUpMethod(java.lang.reflect.Field field, java.lang.Class declaringClass)
          Sets up the gui for a single field
PopUpMethod(java.lang.reflect.Method method, java.lang.Class declaringClass)
          Sets up the gui for a single method
 
Method Summary
 java.lang.Class getClassObject()
          Returns the return type of the method/field/interface
 java.lang.Class getDeclaringClass()
           
 java.lang.reflect.Field getField()
           
 java.lang.Class getInterface()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.String getName()
           
 javax.swing.JPanel getPanel()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PopUpMethod

public PopUpMethod(java.lang.reflect.Method method,
                   java.lang.Class declaringClass)
Sets up the gui for a single method

Parameters:
method - the method you wish to display
declaringClass - the class that contains this method

PopUpMethod

public PopUpMethod(java.lang.reflect.Field field,
                   java.lang.Class declaringClass)
Sets up the gui for a single field

Parameters:
field - the field you wish to display
declaringClass - the class that contains this field

PopUpMethod

public PopUpMethod(java.lang.Class interFace,
                   java.lang.Class declaringClass)
Sets up the gui for a single interface

Parameters:
interFace - the interface you wish to display
declaringClass - the class that contains this field
Method Detail

getDeclaringClass

public final java.lang.Class getDeclaringClass()

getMethod

public final java.lang.reflect.Method getMethod()

getField

public final java.lang.reflect.Field getField()

getInterface

public final java.lang.Class getInterface()

getClassObject

public final java.lang.Class getClassObject()
Returns the return type of the method/field/interface

Returns:
only returns object, if the type is int, long, void, etc will return null instead

getName

public final java.lang.String getName()

getPanel

public final javax.swing.JPanel getPanel()

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object