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
084f22fa
Commit
084f22fa
authored
11 years ago
by
GIRARDOT Raphael
Committed by
MADELA Patrick
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
some code refactoring
parent
563fc744
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dockinginfonode/src/main/java/fr/soleil/docking/infonode/InfoNodeDockingManager.java
+11
-3
11 additions, 3 deletions
...va/fr/soleil/docking/infonode/InfoNodeDockingManager.java
with
11 additions
and
3 deletions
dockinginfonode/src/main/java/fr/soleil/docking/infonode/InfoNodeDockingManager.java
+
11
−
3
View file @
084f22fa
...
@@ -54,18 +54,26 @@ public class InfoNodeDockingManager extends ADockingManager {
...
@@ -54,18 +54,26 @@ public class InfoNodeDockingManager extends ADockingManager {
@Override
@Override
public
JComponent
createNewDockingArea
(
Color
background
)
{
public
JComponent
createNewDockingArea
(
Color
background
)
{
RootWindow
result
=
new
RootWindow
(
new
MyViewSerializer
(
viewFactory
)
);
RootWindow
result
=
generate
RootWindow
();
if
(
background
!=
null
)
{
if
(
background
!=
null
)
{
result
.
getRootWindowProperties
().
getWindowAreaProperties
().
setBackgroundColor
(
background
);
result
.
getRootWindowProperties
().
getWindowAreaProperties
().
setBackgroundColor
(
background
);
}
}
for
(
IView
view
:
viewFactory
.
getViews
())
{
for
(
IView
view
:
viewFactory
.
getViews
())
{
DockingUtil
.
addWindow
((
View
)
view
,
rootWindow
);
DockingUtil
.
addWindow
((
View
)
view
,
rootWindow
);
}
}
result
.
getWindowBar
(
Direction
.
DOWN
).
setEnabled
(
true
);
updateRootWindowAfterViewAdding
(
result
);
result
.
getRootWindowProperties
().
getDockingWindowProperties
().
setUndockEnabled
(
false
);
return
result
;
return
result
;
}
}
protected
RootWindow
generateRootWindow
()
{
return
new
RootWindow
(
new
MyViewSerializer
(
viewFactory
));
}
protected
void
updateRootWindowAfterViewAdding
(
RootWindow
window
)
{
window
.
getWindowBar
(
Direction
.
DOWN
).
setEnabled
(
true
);
window
.
getRootWindowProperties
().
getDockingWindowProperties
().
setUndockEnabled
(
false
);
}
@Override
@Override
public
void
setDockingAreaBeackground
(
JComponent
dockingArea
,
Color
areaBackground
)
{
public
void
setDockingAreaBeackground
(
JComponent
dockingArea
,
Color
areaBackground
)
{
if
(
dockingArea
instanceof
RootWindow
)
{
if
(
dockingArea
instanceof
RootWindow
)
{
...
...
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