Maximize JInternalView automatically with a flag!
-------------------------------------------------
Key: RCP-277
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-277
Project: Spring Framework Rich Client Project
Type: New Feature
Components: Dialog System
Reporter: dma
Assigned to: Oliver Hutchison
Priority: Minor
Possiblity to set via application-context.xml whether the views should be maximized or not. Here is my solution:
DesktopApplicationPage.java
private boolean maximizeFrame = false; --> This attribute is set by the constructor
method giveFocusTo:
...
try {
internalFrame.setMaximum(maximizeFrame);
internalFrame.setSelected(true);
} catch (PropertyVetoException e) {
// ignore
}
...
DesktopApplicationWindow.java
private boolean maximizeFrame = false; //Also declare a flag
protected ApplicationPage createPage(PageDescriptor descriptor) {
return new DesktopApplicationPage(this, descriptor, maximizeFrame);
}
public void setMaximizeFrame(boolean maximize){ //For setter-injection
this.maximizeFrame = maximize;
}
business-application-context.xml:
<bean id="applicationWindowPrototype"
class="org.springframework.richclient.application.mdi.DesktopApplicationWindow"
singleton="false">
<property name="maximizeFrame"> <!-- SET THE FLAG -->
<value>true</value>
</property>
</bean>
markus
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|