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
83b144f8
Commit
83b144f8
authored
11 years ago
by
GIRARDOT Raphael
Committed by
MADELA Patrick
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
view selection added, but does not work yet for vldocking (Jira JAVAAPI-132)
parent
0b3beed5
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/view/InfoNodeView.java
+32
-7
32 additions, 7 deletions
...in/java/fr/soleil/docking/infonode/view/InfoNodeView.java
with
32 additions
and
7 deletions
dockinginfonode/src/main/java/fr/soleil/docking/infonode/view/InfoNodeView.java
+
32
−
7
View file @
83b144f8
...
...
@@ -13,6 +13,7 @@ import java.util.List;
import
javax.swing.Icon
;
import
net.infonode.docking.AbstractTabWindow
;
import
net.infonode.docking.DockingWindow
;
import
net.infonode.docking.DockingWindowListener
;
import
net.infonode.docking.OperationAbortedException
;
...
...
@@ -28,7 +29,7 @@ import fr.soleil.docking.view.IViewListener;
*/
public
class
InfoNodeView
extends
View
implements
IView
{
private
static
final
long
serialVersionUID
=
-
8766019787338480450
L
;
private
static
final
long
serialVersionUID
=
7028633985357675678
L
;
protected
Object
id
;
...
...
@@ -74,6 +75,30 @@ public class InfoNodeView extends View implements IView {
super
.
setEnabled
(
visible
);
}
@Override
public
void
select
()
{
recursiveSelect
(
this
);
// requestFocusInWindow();
// Component comp = getComponent();
// if (comp != null) {
// comp.requestFocusInWindow();
// }
}
protected
static
void
recursiveSelect
(
DockingWindow
window
)
{
if
(
window
!=
null
)
{
DockingWindow
parent
=
window
.
getWindowParent
();
if
(
parent
instanceof
AbstractTabWindow
)
{
AbstractTabWindow
tabWindow
=
(
AbstractTabWindow
)
parent
;
int
index
=
parent
.
getChildWindowIndex
(
window
);
if
(
index
>
-
1
)
{
tabWindow
.
setSelectedTab
(
index
);
}
}
recursiveSelect
(
parent
);
}
}
@Override
protected
void
update
()
{
super
.
update
();
...
...
@@ -116,9 +141,9 @@ public class InfoNodeView extends View implements IView {
win
.
setBackground
(
bg
);
win
.
setBorder
(
null
);
win
.
getWindowProperties
().
getTabProperties
().
getTitledTabProperties
().
getNormalProperties
()
.
getComponentProperties
().
setBackgroundColor
(
bg
);
.
getComponentProperties
().
setBackgroundColor
(
bg
);
win
.
getWindowProperties
().
getTabProperties
().
getTitledTabProperties
().
getHighlightedProperties
()
.
getComponentProperties
().
setBackgroundColor
(
bg
);
.
getComponentProperties
().
setBackgroundColor
(
bg
);
}
/**
...
...
@@ -130,9 +155,9 @@ public class InfoNodeView extends View implements IView {
protected
void
setForeground
(
DockingWindow
win
,
Color
fg
)
{
win
.
setForeground
(
fg
);
win
.
getWindowProperties
().
getTabProperties
().
getTitledTabProperties
().
getNormalProperties
()
.
getComponentProperties
().
setForegroundColor
(
fg
);
.
getComponentProperties
().
setForegroundColor
(
fg
);
win
.
getWindowProperties
().
getTabProperties
().
getTitledTabProperties
().
getHighlightedProperties
()
.
getComponentProperties
().
setForegroundColor
(
fg
);
.
getComponentProperties
().
setForegroundColor
(
fg
);
}
/**
...
...
@@ -171,9 +196,9 @@ public class InfoNodeView extends View implements IView {
public
void
setClosable
(
boolean
closable
)
{
if
(
getWindowProperties
()
!=
null
)
{
getWindowProperties
().
getTabProperties
().
getNormalButtonProperties
().
getCloseButtonProperties
()
.
setVisible
(
closable
);
.
setVisible
(
closable
);
getWindowProperties
().
getTabProperties
().
getHighlightedButtonProperties
().
getCloseButtonProperties
()
.
setVisible
(
closable
);
.
setVisible
(
closable
);
getWindowProperties
().
setCloseEnabled
(
closable
);
}
}
...
...
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