Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Docking
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Libraries
java
Docking
Commits
198be8fe
Commit
198be8fe
authored
10 years ago
by
GIRARDOT Raphael
Committed by
MADELA Patrick
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added the undocking possibility, except for VL implementation (JAVAAPI-213)
parent
a6480210
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dockingcore/src/main/java/fr/soleil/docking/ADockingManager.java
+61
-2
61 additions, 2 deletions
...core/src/main/java/fr/soleil/docking/ADockingManager.java
with
61 additions
and
2 deletions
dockingcore/src/main/java/fr/soleil/docking/ADockingManager.java
+
61
−
2
View file @
198be8fe
...
...
@@ -221,14 +221,37 @@ public abstract class ADockingManager implements PropertyChangeListener {
*
* @param enabledDocking
*/
public
abstract
void
setEnabledDocking
(
boolean
enabledDocking
);
public
void
setEnabledDocking
(
boolean
enabledDocking
)
{
setEnabledDocking
(
enabledDocking
,
getDockingArea
());
}
/**
* Get the Enabled Docking property
*
* @return true if the docking is enabled
*/
public
abstract
boolean
isEnabledDocking
();
public
boolean
isEnabledDocking
()
{
return
isEnabledDocking
(
getDockingArea
());
}
/**
* Enable the docking or not in a docking area. If the docking is disable, the inherit class must disable all
* functionality of the docking for the docking area. I must be comparable to a JPanel composed by JtabbedPane,
* JSplitPane etc...
*
* @param enabledDocking Whetehr to enable docking
* @param dockingArea The docking area for which to enable/disable docking
*/
public
abstract
void
setEnabledDocking
(
boolean
enabledDocking
,
JComponent
dockingArea
);
/**
* Get the Enabled Docking property for a docking area
*
* @param dockingArea The docking area to test
*
* @return true if the docking is enabled
*/
public
abstract
boolean
isEnabledDocking
(
JComponent
dockingArea
);
/**
* Returns whether a view, once closed, is sure to be restored at the exact previous position once shown again
...
...
@@ -237,4 +260,40 @@ public abstract class ADockingManager implements PropertyChangeListener {
*/
public
abstract
boolean
canRestoreExactViewPosition
();
/**
* Configures a docking area to accept or not component undocking (window creation outside of the docking area for
* given component)
*
* @param enabled Whether to accept component undocking
* @param dockingArea The concerned docking area
*/
public
abstract
void
setUndockEnabled
(
boolean
enabled
,
JComponent
dockingArea
);
/**
* Configures main docking area to accept or not component undocking
*
* @param enabled Whether to accept component undocking
*/
public
void
setUndockEnabled
(
boolean
enabled
)
{
setUndockEnabled
(
enabled
,
getDockingArea
());
}
/**
* Returns whether a docking area accepts component undocking (window creation outside of the docking area for
* given component)
*
* @param dockingArea The concerned docking area
* @return A <code>boolean</code>
*/
public
abstract
boolean
isUndockEnabled
(
JComponent
dockingArea
);
/**
* Returns whether main docking area accepts component undocking
*
* @return A <code>boolean</code>
*/
public
boolean
isUndockEnabled
()
{
return
isUndockEnabled
(
getDockingArea
());
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment