Lines 80-92
Link Here
|
80 |
import javax.accessibility.Accessible; |
80 |
import javax.accessibility.Accessible; |
81 |
import javax.accessibility.AccessibleContext; |
81 |
import javax.accessibility.AccessibleContext; |
82 |
import javax.accessibility.AccessibleRole; |
82 |
import javax.accessibility.AccessibleRole; |
83 |
import javax.swing.AbstractAction; |
83 |
import javax.swing.*; |
84 |
import javax.swing.Action; |
|
|
85 |
import javax.swing.ActionMap; |
86 |
import javax.swing.JComponent; |
87 |
import javax.swing.KeyStroke; |
88 |
import javax.swing.SwingUtilities; |
89 |
import javax.swing.Timer; |
90 |
import javax.swing.plaf.basic.BasicHTML; |
84 |
import javax.swing.plaf.basic.BasicHTML; |
91 |
import javax.swing.text.Keymap; |
85 |
import javax.swing.text.Keymap; |
92 |
import org.openide.awt.ActionID; |
86 |
import org.openide.awt.ActionID; |
Lines 1033-1039
Link Here
|
1033 |
public String getHtmlDisplayName() { |
1027 |
public String getHtmlDisplayName() { |
1034 |
return htmlDisplayName; |
1028 |
return htmlDisplayName; |
1035 |
} |
1029 |
} |
1036 |
|
1030 |
|
1037 |
|
1031 |
|
1038 |
/** Sets toolTip for this <code>TopComponent</code>, adds notification |
1032 |
/** Sets toolTip for this <code>TopComponent</code>, adds notification |
1039 |
* about the change to its <code>WindowManager.TopComponentManager</code>. */ |
1033 |
* about the change to its <code>WindowManager.TopComponentManager</code>. */ |
Lines 1394-1399
Link Here
|
1394 |
this.nodeName = nodeName; |
1388 |
this.nodeName = nodeName; |
1395 |
} |
1389 |
} |
1396 |
|
1390 |
|
|
|
1391 |
/** |
1392 |
* Retrieves sub-components this TopComponent contains. |
1393 |
* |
1394 |
* @return Array of internal sub-components. The default implementation |
1395 |
* returns null. |
1396 |
* @since 6.52 |
1397 |
*/ |
1398 |
public SubComponent[] getSubComponents() { |
1399 |
return null; |
1400 |
} |
1401 |
|
1397 |
/** Each top component that wishes to be cloned should implement |
1402 |
/** Each top component that wishes to be cloned should implement |
1398 |
* this interface, so CloneAction can check it and call the cloneComponent |
1403 |
* this interface, so CloneAction can check it and call the cloneComponent |
1399 |
* method. |
1404 |
* method. |
Lines 1539-1544
Link Here
|
1539 |
public void removePropertyChangeListener(PropertyChangeListener l); |
1544 |
public void removePropertyChangeListener(PropertyChangeListener l); |
1540 |
} |
1545 |
} |
1541 |
|
1546 |
|
|
|
1547 |
/** |
1548 |
* Representation of a visual sub-component displayed in a TopComponent, |
1549 |
* for example sub-tabs in a multiview window. |
1550 |
* |
1551 |
* @see #getSubComponents() |
1552 |
* @since 6.52 |
1553 |
*/ |
1554 |
public static abstract class SubComponent { |
1555 |
private final String displayName; |
1556 |
private final String description; |
1557 |
private boolean active; |
1558 |
|
1559 |
/** |
1560 |
* C'tor |
1561 |
* @param displayName Subcomponent's display name. |
1562 |
* @param active True if the given sub-component is currently active, |
1563 |
* e.g. multiview sub-tab is selected. |
1564 |
*/ |
1565 |
public SubComponent( String displayName, boolean active ) { |
1566 |
this( displayName, null, active ); |
1567 |
} |
1568 |
|
1569 |
/** |
1570 |
* C'tor |
1571 |
* @param displayName Subcomponent's display name. |
1572 |
* @param description Short description to show in a tooltip. |
1573 |
* @param active True if the given sub-component is currently active, |
1574 |
* e.g. multiview sub-tab is selected. |
1575 |
*/ |
1576 |
public SubComponent( String displayName, String description, boolean active ) { |
1577 |
this.displayName = displayName; |
1578 |
this.description = description; |
1579 |
this.active = active; |
1580 |
} |
1581 |
|
1582 |
/** |
1583 |
* @return True if this sub-component is the active/selected one. |
1584 |
*/ |
1585 |
public final boolean isActive() { |
1586 |
return active; |
1587 |
} |
1588 |
|
1589 |
public final String getDescription() { |
1590 |
return description; |
1591 |
} |
1592 |
|
1593 |
public final String getDisplayName() { |
1594 |
return displayName; |
1595 |
} |
1596 |
|
1597 |
/** |
1598 |
* Make this sub-component the active/selected one. |
1599 |
*/ |
1600 |
public abstract void activate(); |
1601 |
} |
1602 |
|
1542 |
private class AttentionGetter implements ActionListener { |
1603 |
private class AttentionGetter implements ActionListener { |
1543 |
Timer timer = null; |
1604 |
Timer timer = null; |
1544 |
|
1605 |
|