com.mythicscape.batclient.interfaces
Interface BatWindow


public interface BatWindow

Interface for the internal windows of BatClient.

Author:
Emil

Method Summary
 void addComponentListener(java.awt.event.ComponentListener listener)
           
 void addInternalFrameListener(javax.swing.event.InternalFrameListener listener)
           
 void close()
          Closes the window and removes it from the desktop.
 java.awt.Point getLocation()
           
 javax.swing.JPanel getPanelAtTab(int index)
          Gets the panel at a particular tab in the window.
 java.awt.Dimension getSize()
           
 int getTabCount()
           
 boolean isVisible()
           
 void newTab(java.lang.String name, javax.swing.JComponent component)
          Adds a new tab to the window with a particular panel.
 void removeTabAt(int index)
           
 void setAlphaValue(int alpha)
          Sets the alpha value of the frame.
 void setLocation(int x, int y)
           
 void setPanelAtTab(int index, java.lang.String name, javax.swing.JPanel panel)
          Sets the panel for a particular tab in the window.
 void setSize(int width, int height)
           
 void setVisible(boolean visible)
           
 

Method Detail

getPanelAtTab

javax.swing.JPanel getPanelAtTab(int index)
Gets the panel at a particular tab in the window. Index 0 is the first tab in the window.

Returns:

getTabCount

int getTabCount()

setPanelAtTab

void setPanelAtTab(int index,
                   java.lang.String name,
                   javax.swing.JPanel panel)
                   throws java.lang.Exception
Sets the panel for a particular tab in the window. If the tab doesn't exists an Exception will be thrown.

Parameters:
index -
name -
panel -
Throws:
java.lang.Exception

removeTabAt

void removeTabAt(int index)

newTab

void newTab(java.lang.String name,
            javax.swing.JComponent component)
Adds a new tab to the window with a particular panel.

Parameters:
name -
panel -

setVisible

void setVisible(boolean visible)

setSize

void setSize(int width,
             int height)

setLocation

void setLocation(int x,
                 int y)

isVisible

boolean isVisible()

getLocation

java.awt.Point getLocation()

getSize

java.awt.Dimension getSize()

addComponentListener

void addComponentListener(java.awt.event.ComponentListener listener)

addInternalFrameListener

void addInternalFrameListener(javax.swing.event.InternalFrameListener listener)

setAlphaValue

void setAlphaValue(int alpha)
Sets the alpha value of the frame. The number should be between 0 and 255.

Parameters:
alpha -

close

void close()
Closes the window and removes it from the desktop.