View | Details | Raw Unified | Return to bug 156693
Collapse All | Expand All

(-)a/o.n.swing.tabcontrol/apichanges.xml (+18 lines)
 Lines 104-109    Link Here 
104
    <!-- ACTUAL CHANGES BEGIN HERE: -->
104
    <!-- ACTUAL CHANGES BEGIN HERE: -->
105
105
106
<changes>
106
<changes>
107
108
    <change id="topcomponent_level_winsys_customizations">
109
      <api name="tabcontrol"/>
110
      <summary>Added new abstract class WinsysInfoForTabbedContainer which can
111
      adjust some tabbed container properties and behavior.</summary>
112
      <version major="1" minor="15"/>
113
      <date day="13" month="1" year="2009"/>
114
      <author login="saubrecht"/>
115
      <compatibility addition="yes" binary="compatible" deprecation="no"/>
116
      <description>
117
        <p>Added new methods to class WinsysInfoForTabbedContainer to find out the
118
        status (enabled/disabled) of some window system features. For example, is the TopComponent
119
        allowed to slide-out.
120
        </p>
121
      </description>
122
      <class package="org.netbeans.swing.tabcontrol" name="WinsysInfoForTabbedContainer"/>
123
      <issue number="156693"/>
124
    </change>
107
125
108
    <change id="winsysinfo_for_tabbed_container">
126
    <change id="winsysinfo_for_tabbed_container">
109
      <api name="tabcontrol"/>
127
      <api name="tabcontrol"/>
(-)a/o.n.swing.tabcontrol/manifest.mf (-1 / +1 lines)
 Lines 1-6    Link Here 
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module-Localizing-Bundle: org/netbeans/swing/tabcontrol/Bundle.properties
2
OpenIDE-Module-Localizing-Bundle: org/netbeans/swing/tabcontrol/Bundle.properties
3
OpenIDE-Module: org.netbeans.swing.tabcontrol
3
OpenIDE-Module: org.netbeans.swing.tabcontrol
4
OpenIDE-Module-Specification-Version: 1.14
4
OpenIDE-Module-Specification-Version: 1.15
5
AutoUpdate-Essential-Module: true
5
AutoUpdate-Essential-Module: true
6
6
(-)a/o.n.swing.tabcontrol/src/org/netbeans/swing/tabcontrol/WinsysInfoForTabbedContainer.java (+40 lines)
 Lines 42-47    Link Here 
42
package org.netbeans.swing.tabcontrol;
42
package org.netbeans.swing.tabcontrol;
43
43
44
import java.awt.Component;
44
import java.awt.Component;
45
import org.openide.windows.TopComponent;
45
46
46
47
47
/**
48
/**
 Lines 72-77    Link Here 
72
     * from TopComponent's header.
73
     * from TopComponent's header.
73
     */
74
     */
74
    public boolean isTopComponentClosingEnabled() {
75
    public boolean isTopComponentClosingEnabled() {
76
        return true;
77
    }
78
79
    /**
80
     * @return True if given TopComponent can be closed, false to remove Close button
81
     * from TopComponent's header.
82
     */
83
    public boolean isTopComponentClosingEnabled( TopComponent tc ) {
84
        return true;
85
    }
86
87
    /**
88
     * @return True if given TopComponent can be slided-out, false to remove 'Minimize Window'
89
     * action from TopComponent's popup menu.
90
     */
91
    public boolean isTopComponentSlidingEnabled( TopComponent tc ) {
92
        return true;
93
    }
94
95
    /**
96
     * @return True if given TopComponent can be dragged-out and dropped into a
97
     * different mode.
98
     */
99
    public boolean isTopComponentDraggingEnabled( TopComponent tc ) {
100
        return true;
101
    }
102
103
    /**
104
     * @return True if given TopComponent can be undocked (floating), false to
105
     * remove "Undock Window" action from TopComponent's popup menu.
106
     */
107
    public boolean isTopComponentUndockingEnabled( TopComponent tc ) {
108
        return true;
109
    }
110
111
    /**
112
     * @return True if given TopComponent can be maximized.
113
     */
114
    public boolean isTopComponentMaximizationEnabled( TopComponent tc ) {
75
        return true;
115
        return true;
76
    }
116
    }
77
    
117
    
(-)a/openide.windows/apichanges.xml (+23 lines)
 Lines 47-52    Link Here 
47
<apidef name="winsys">Window System API</apidef>
47
<apidef name="winsys">Window System API</apidef>
48
</apidefs>
48
</apidefs>
49
<changes>
49
<changes>
50
51
<change id="per_topcomponent_winsys_customizations">
52
    <api name="winsys"/>
53
    <summary>Added a group of client properties for customization
54
    of window system behavior on per-TopComponent basis.</summary>
55
    <version major="6" minor="26"/>
56
    <date day="13" month="1" year="2009"/>
57
    <author login="saubrecht"/>
58
    <compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible" deprecation="no" deletion="no" modification="no"/>
59
    <description>
60
	<p>There is a set of new boolean client properties which platform
61
        developers can use to customize the behavior of individual TopComponents in NetBeans' window system:</p>
62
        <ul>
63
            <li>Disable window closing</li>
64
            <li>Disable window drag and drop</li>
65
            <li>Disable window undocking (floating windows)</li>
66
            <li>Disable window sliding</li>
67
            <li>Disable window maximization</li>
68
        </ul>
69
        <p>The features above can be turned on/off simply by branding of core.windows module.</p>
70
    </description>
71
    <issue number="156693"/>
72
</change>
50
73
51
<change id="tc.open">
74
<change id="tc.open">
52
    <api name="winsys"/>
75
    <api name="winsys"/>
(-)a/openide.windows/arch.xml (-2 / +32 lines)
 Lines 540-550    Link Here 
540
540
541
<api type="export" group="property" name="netbeans.winsys.tc.keep_preferred_size_when_slided_in" category="stable">
541
<api type="export" group="property" name="netbeans.winsys.tc.keep_preferred_size_when_slided_in" category="stable">
542
     Name of TopComponent's Boolean client property which forces the window system
542
     Name of TopComponent's Boolean client property which forces the window system
543
     to respect TopComponent's preferred size when it is slided-in from left/right/bottom 
543
     to respect TopComponent's preferred size when it is slided-in from left/right/bottom
544
     sliding bar when set to Boolean.TRUE. Otherwise the slided-in TopComponent
544
     sliding bar when set to Boolean.TRUE. Otherwise the slided-in TopComponent
545
     will fill the entire width/length of the IDE window (the default behavior).
545
     will fill the entire width/length of the IDE window (the default behavior).
546
     This switch is intended for tools/palette windows like e.g. color chooser, 
546
     This switch is intended for tools/palette windows like e.g. color chooser,
547
     tool picker etc.
547
     tool picker etc.
548
</api>
549
550
<api type="export" group="property" name="netbeans.winsys.tc.closing_disabled" category="stable">
551
     Name of TopComponent's Boolean client property which removes close button
552
     from TopComponent's header and disables its 'Close Window' action when set to Boolean.TRUE.
553
</api>
554
555
<api type="export" group="property" name="netbeans.winsys.tc.sliding_disabled" category="stable">
556
     Name of TopComponent's Boolean client property which removes 'minimized' button
557
     from TopComponent's header and disables its 'Minimize Window' action when
558
     set to Boolean.TRUE. TopComponents which are already slided-out and have this
559
     property set to Boolean.TRUE will have 'pin' button removed from their header
560
     and their 'Minimize Window' action will be disabled.
561
</api>
562
563
<api type="export" group="property" name="netbeans.winsys.tc.undocking_disabled" category="stable">
564
     Name of TopComponent's Boolean client property which disables TopComponent's
565
     'Undock Window' action when set to Boolean.TRUE. TopComponents which are already
566
     floating and have this property set to Boolean.TRUE will have their 'Dock Window' action disabled.
567
</api>
568
569
<api type="export" group="property" name="netbeans.winsys.tc.dragging_disabled" category="stable">
570
     Name of TopComponent's Boolean client property which disables drag and drop
571
     when set to Boolean.TRUE.
572
</api>
573
574
<api type="export" group="property" name="netbeans.winsys.tc.maximization_disabled" category="stable">
575
     Name of TopComponent's Boolean client property which disables TopComponent 
576
     maximization by double-clicking its header when set to Boolean.TRUE. TopComponent's
577
     'Maximize Window' action will be also disabled.
548
</api>
578
</api>
549
579
550
580
(-)a/openide.windows/manifest.mf (-1 / +1 lines)
 Lines 1-6    Link Here 
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
OpenIDE-Module: org.openide.windows
2
OpenIDE-Module: org.openide.windows
3
OpenIDE-Module-Specification-Version: 6.25
3
OpenIDE-Module-Specification-Version: 6.26
4
OpenIDE-Module-Localizing-Bundle: org/openide/windows/Bundle.properties
4
OpenIDE-Module-Localizing-Bundle: org/openide/windows/Bundle.properties
5
AutoUpdate-Essential-Module: true
5
AutoUpdate-Essential-Module: true
6
6

Return to bug 156693
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo