import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleExtendedComponent;
-import javax.accessibility.AccessibleKeyBinding;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleStateSet;
import javax.swing.event.AncestorListener;
* AccessibleFocusHandler
*/
protected class AccessibleFocusHandler implements FocusListener {
-
- //-------------------------------------------------------------
- // Variables --------------------------------------------------
- //-------------------------------------------------------------
-
-
- //-------------------------------------------------------------
- // Initialization ---------------------------------------------
- //-------------------------------------------------------------
-
/**
* Constructor AccessibleFocusHandler
* @param component TODO
// TODO
} // AccessibleFocusHandler()
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
/**
* focusGained
* @param event TODO
public void focusLost(FocusEvent valevent) {
// TODO
} // focusLost()
-
-
} // AccessibleFocusHandler
/**
* AccessibleContainerHandler
*/
protected class AccessibleContainerHandler implements ContainerListener {
-
- //-------------------------------------------------------------
- // Variables --------------------------------------------------
- //-------------------------------------------------------------
-
-
- //-------------------------------------------------------------
- // Initialization ---------------------------------------------
- //-------------------------------------------------------------
-
/**
* Constructor AccessibleContainerHandler
* @param component TODO
// TODO
} // AccessibleContainerHandler()
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
/**
* componentAdded
* @param event TODO
public void componentRemoved(ContainerEvent valevent) {
// TODO
} // componentRemoved()
-
-
} // AccessibleContainerHandler
-
- //-------------------------------------------------------------
- // Variables --------------------------------------------------
- //-------------------------------------------------------------
-
/**
* accessibleContainerHandler
*/
*/
protected FocusListener accessibleFocusHandler;
-
- //-------------------------------------------------------------
- // Initialization ---------------------------------------------
- //-------------------------------------------------------------
-
/**
* Constructor AccessibleJComponent
* @param component TODO
// TODO
} // AccessibleJComponent()
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
/**
* addPropertyChangeListener
* @param listener TODO
//updateUI(); // get a proper ui
}
-
// protected EventListenerList listenerList
public boolean contains(int x, int y)
{
return super.contains(x,y);
}
-
public void addNotify()
{
//Notification to this component that it now has a parent component.
super.addNotify();
}
-
Hashtable get_prop_hash()
{
if (prop_hash == null)
public void putClientProperty(Object key, Object value)
{ get_prop_hash().put(key, value); }
-
public void removeAncestorListener(AncestorListener listener)
{ get_ancestor_list().removeElement(listener); }
//super.computeVisibleRect(rect);
}
-
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
{
//Reports a bound property change.
// Reports a bound property change.
}
-
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
{
// Support for reporting constrained property changes.
}
}
-
-
- /*********************************************************************
- *
- *
- * tooltips:
- *
- *
- **************************************/
-
public JToolTip createToolTip()
{
if (tooltip == null)
public String getToolTipText(MouseEvent event)
{ return tool_tip_text; }
- /*********************************************************************
- *
- *
- * things to do with visibility:
- *
- *
- **************************************/
-
-
public Container getTopLevelAncestor()
{
// Returns the top-level ancestor of this component (either the containing Window or Applet), or null if this component has not been added to any container.
// If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport
}
-
public void setDebugGraphicsOptions(int debugOptions)
{
// Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.
revalidate();
repaint();
}
+
public void setBackground(Color bg)
{
super.setBackground(bg);
paint(g);
}
-
-
- /******************************************
- *
- *
- * UI management
- *
- *
- *********/
-
public String getUIClassID()
{
/// Return the UIDefaults key used to look up the name of the swing.
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package javax.swing;
-/**
- * STUBBED
- */
+
+import java.awt.Component;
+import java.awt.Container;
+import javax.accessibility.Accessible;
+
public class JInternalFrame extends JComponent
/*implements Accessible, WindowConstants, RootPaneContainer*/
{
+ private static final long serialVersionUID = -5425177187760785402L;
+
+ public static final String CONTENT_PANE_PROPERTY = "contentPane";
+ public static final String MENU_BAR_PROPERTY = "JMenuBar";
+ public static final String TITLE_PROPERTY = "title";
+ public static final String LAYERED_PANE_PROPERTY = "layeredPane";
+ public static final String ROOT_PANE_PROPERTY = "rootPane";
+ public static final String GLASS_PANE_PROPERTY = "glassPane";
+ public static final String FRAME_ICON_PROPERTY = "frameIcon";
+ public static final String IS_SELECTED_PROPERTY = "selected";
+ public static final String IS_CLOSED_PROPERTY = "closed";
+ public static final String IS_MAXIMUM_PROPERTY = "maximum";
+ public static final String IS_ICON_PROPERTY = "icon";
} // class JInternalFrame
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package javax.swing;
-/**
- * STUBBED
- */
+
+import javax.swing.event.ChangeEvent;
+import javax.swing.event.ChangeListener;
+import javax.swing.event.EventListenerList;
+
public class MenuSelectionManager
{
+ protected ChangeEvent changeEvent;
+
+ protected EventListenerList listenerList = new EventListenerList ();
+
+ protected void fireStateChanged ()
+ {
+ ChangeListener[] listeners = getChangeListeners ();
+
+ for (int i = 0; i < listeners.length; i++)
+ {
+ listeners [i].stateChanged (new ChangeEvent (this));
+ }
+ }
+
+ public void addChangeListener (ChangeListener listener)
+ {
+ listenerList.add (ChangeListener.class, listener);
+ }
+
+ public void removeChangeListener (ChangeListener listener)
+ {
+ listenerList.remove (ChangeListener.class, listener);
+ }
+
+ /** @since 1.4 */
+ public ChangeListener[] getChangeListeners ()
+ {
+ return (ChangeListener[]) listenerList.getListeners (ChangeListener.class);
+ }
} // class MenuSelectionManager
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
-package javax.swing;
-
-import java.awt.*;
+package javax.swing;
-public class SwingUtilities
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.EventQueue;
+import java.awt.Font;
+import java.awt.FontMetrics;
+import java.awt.Graphics;
+import java.awt.Insets;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.awt.Toolkit;
+import java.awt.Window;
+import java.awt.event.KeyEvent;
+import java.awt.event.MouseEvent;
+import java.lang.reflect.InvocationTargetException;
+import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleStateSet;
+
+public class SwingUtilities implements SwingConstants
+{
+ public static FontMetrics getFontMetrics (Font font)
{
-
- public static FontMetrics getFontMetrics ( Font font ) {
return Toolkit.getDefaultToolkit().getFontMetrics(font);
}
-
- static JRootPane getRootPane(Component a)
+ public static JRootPane getRootPane (Component a)
{
if (a instanceof JRootPane)
return (JRootPane) a;
return null;
}
- static void updateComponentTreeUI(JFrame comp)
+ public static void updateComponentTreeUI(JFrame comp)
{
}
- static public String layoutCompoundLabel(JComponent c,
+ public static String layoutCompoundLabel(JComponent c,
FontMetrics fm,
String text,
Icon i,