66 |
import javax.accessibility.Accessible; |
import javax.accessibility.Accessible; |
67 |
import javax.accessibility.AccessibleContext; |
import javax.accessibility.AccessibleContext; |
68 |
import javax.accessibility.AccessibleExtendedComponent; |
import javax.accessibility.AccessibleExtendedComponent; |
|
import javax.accessibility.AccessibleKeyBinding; |
|
69 |
import javax.accessibility.AccessibleRole; |
import javax.accessibility.AccessibleRole; |
70 |
import javax.accessibility.AccessibleStateSet; |
import javax.accessibility.AccessibleStateSet; |
71 |
import javax.swing.event.AncestorListener; |
import javax.swing.event.AncestorListener; |
115 |
* AccessibleFocusHandler |
* AccessibleFocusHandler |
116 |
*/ |
*/ |
117 |
protected class AccessibleFocusHandler implements FocusListener { |
protected class AccessibleFocusHandler implements FocusListener { |
|
|
|
|
//------------------------------------------------------------- |
|
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
118 |
/** |
/** |
119 |
* Constructor AccessibleFocusHandler |
* Constructor AccessibleFocusHandler |
120 |
* @param component TODO |
* @param component TODO |
123 |
// TODO |
// TODO |
124 |
} // AccessibleFocusHandler() |
} // AccessibleFocusHandler() |
125 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
126 |
/** |
/** |
127 |
* focusGained |
* focusGained |
128 |
* @param event TODO |
* @param event TODO |
138 |
public void focusLost(FocusEvent valevent) { |
public void focusLost(FocusEvent valevent) { |
139 |
// TODO |
// TODO |
140 |
} // focusLost() |
} // focusLost() |
|
|
|
|
|
|
141 |
} // AccessibleFocusHandler |
} // AccessibleFocusHandler |
142 |
|
|
143 |
/** |
/** |
144 |
* AccessibleContainerHandler |
* AccessibleContainerHandler |
145 |
*/ |
*/ |
146 |
protected class AccessibleContainerHandler implements ContainerListener { |
protected class AccessibleContainerHandler implements ContainerListener { |
|
|
|
|
//------------------------------------------------------------- |
|
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
147 |
/** |
/** |
148 |
* Constructor AccessibleContainerHandler |
* Constructor AccessibleContainerHandler |
149 |
* @param component TODO |
* @param component TODO |
152 |
// TODO |
// TODO |
153 |
} // AccessibleContainerHandler() |
} // AccessibleContainerHandler() |
154 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
155 |
/** |
/** |
156 |
* componentAdded |
* componentAdded |
157 |
* @param event TODO |
* @param event TODO |
167 |
public void componentRemoved(ContainerEvent valevent) { |
public void componentRemoved(ContainerEvent valevent) { |
168 |
// TODO |
// TODO |
169 |
} // componentRemoved() |
} // componentRemoved() |
|
|
|
|
|
|
170 |
} // AccessibleContainerHandler |
} // AccessibleContainerHandler |
171 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
172 |
/** |
/** |
173 |
* accessibleContainerHandler |
* accessibleContainerHandler |
174 |
*/ |
*/ |
179 |
*/ |
*/ |
180 |
protected FocusListener accessibleFocusHandler; |
protected FocusListener accessibleFocusHandler; |
181 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
182 |
/** |
/** |
183 |
* Constructor AccessibleJComponent |
* Constructor AccessibleJComponent |
184 |
* @param component TODO |
* @param component TODO |
188 |
// TODO |
// TODO |
189 |
} // AccessibleJComponent() |
} // AccessibleJComponent() |
190 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
191 |
/** |
/** |
192 |
* addPropertyChangeListener |
* addPropertyChangeListener |
193 |
* @param listener TODO |
* @param listener TODO |
277 |
//updateUI(); // get a proper ui |
//updateUI(); // get a proper ui |
278 |
} |
} |
279 |
|
|
|
|
|
280 |
// protected EventListenerList listenerList |
// protected EventListenerList listenerList |
281 |
public boolean contains(int x, int y) |
public boolean contains(int x, int y) |
282 |
{ |
{ |
284 |
return super.contains(x,y); |
return super.contains(x,y); |
285 |
} |
} |
286 |
|
|
|
|
|
287 |
public void addNotify() |
public void addNotify() |
288 |
{ |
{ |
289 |
//Notification to this component that it now has a parent component. |
//Notification to this component that it now has a parent component. |
290 |
super.addNotify(); |
super.addNotify(); |
291 |
} |
} |
292 |
|
|
|
|
|
293 |
Hashtable get_prop_hash() |
Hashtable get_prop_hash() |
294 |
{ |
{ |
295 |
if (prop_hash == null) |
if (prop_hash == null) |
321 |
public void putClientProperty(Object key, Object value) |
public void putClientProperty(Object key, Object value) |
322 |
{ get_prop_hash().put(key, value); } |
{ get_prop_hash().put(key, value); } |
323 |
|
|
|
|
|
324 |
public void removeAncestorListener(AncestorListener listener) |
public void removeAncestorListener(AncestorListener listener) |
325 |
{ get_ancestor_list().removeElement(listener); } |
{ get_ancestor_list().removeElement(listener); } |
326 |
|
|
351 |
//super.computeVisibleRect(rect); |
//super.computeVisibleRect(rect); |
352 |
} |
} |
353 |
|
|
|
|
|
354 |
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) |
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) |
355 |
{ |
{ |
356 |
//Reports a bound property change. |
//Reports a bound property change. |
391 |
// Reports a bound property change. |
// Reports a bound property change. |
392 |
} |
} |
393 |
|
|
|
|
|
394 |
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) |
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) |
395 |
{ |
{ |
396 |
// Support for reporting constrained property changes. |
// Support for reporting constrained property changes. |
602 |
} |
} |
603 |
} |
} |
604 |
|
|
|
|
|
|
|
|
|
/********************************************************************* |
|
|
* |
|
|
* |
|
|
* tooltips: |
|
|
* |
|
|
* |
|
|
**************************************/ |
|
|
|
|
605 |
public JToolTip createToolTip() |
public JToolTip createToolTip() |
606 |
{ |
{ |
607 |
if (tooltip == null) |
if (tooltip == null) |
621 |
public String getToolTipText(MouseEvent event) |
public String getToolTipText(MouseEvent event) |
622 |
{ return tool_tip_text; } |
{ return tool_tip_text; } |
623 |
|
|
|
/********************************************************************* |
|
|
* |
|
|
* |
|
|
* things to do with visibility: |
|
|
* |
|
|
* |
|
|
**************************************/ |
|
|
|
|
|
|
|
624 |
public Container getTopLevelAncestor() |
public Container getTopLevelAncestor() |
625 |
{ |
{ |
626 |
// 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. |
// 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. |
878 |
// If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport |
// If true this component will automatically scroll its contents when dragged, if contained in a component that supports scrolling, such as JViewport |
879 |
} |
} |
880 |
|
|
|
|
|
881 |
public void setDebugGraphicsOptions(int debugOptions) |
public void setDebugGraphicsOptions(int debugOptions) |
882 |
{ |
{ |
883 |
// Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. |
// Enables or disables diagnostic information about every graphics operation performed within the component or one of its children. |
901 |
revalidate(); |
revalidate(); |
902 |
repaint(); |
repaint(); |
903 |
} |
} |
904 |
|
|
905 |
public void setBackground(Color bg) |
public void setBackground(Color bg) |
906 |
{ |
{ |
907 |
super.setBackground(bg); |
super.setBackground(bg); |
968 |
paint(g); |
paint(g); |
969 |
} |
} |
970 |
|
|
|
|
|
|
|
|
|
/****************************************** |
|
|
* |
|
|
* |
|
|
* UI management |
|
|
* |
|
|
* |
|
|
*********/ |
|
|
|
|
971 |
public String getUIClassID() |
public String getUIClassID() |
972 |
{ |
{ |
973 |
/// Return the UIDefaults key used to look up the name of the swing. |
/// Return the UIDefaults key used to look up the name of the swing. |