|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:19:26
|
[ http://jira.springframework.org/browse/RCP-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-277:
-----------------------------
Fix Version/s: 1.x
> Maximize JInternalView automatically with a flag!
> -------------------------------------------------
>
> Key: RCP-277
> URL: http://jira.springframework.org/browse/RCP-277
> Project: Spring Framework Rich Client Project
> Issue Type: New Feature
> Components: Dialog System
> Reporter: dma
> Assignee: Oliver Hutchison
> Priority: Minor
> Fix For: 1.x
>
>
> 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://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|