Revision 9750 trunk/frameworks/_fwAndami/src/com/iver/andami/ui/mdiManager/WindowInfo.java
WindowInfo.java | ||
---|---|---|
44 | 44 |
import java.beans.PropertyChangeListener; |
45 | 45 |
import java.beans.PropertyChangeSupport; |
46 | 46 |
|
47 |
import org.exolab.castor.xml.XMLException; |
|
48 |
|
|
47 | 49 |
import com.iver.andami.PluginServices; |
48 | 50 |
import com.iver.utiles.XMLEntity; |
49 | 51 |
|
... | ... | |
81 | 83 |
/** DOCUMENT ME! */ |
82 | 84 |
private boolean modal = false; |
83 | 85 |
private boolean modeless = false; |
84 |
|
|
86 |
|
|
85 | 87 |
/** |
86 | 88 |
* Do we want to persist the geometry of this window in the project file? |
87 | 89 |
*/ |
... | ... | |
421 | 423 |
support.firePropertyChange("maximized", this.isMaximized, maximized); |
422 | 424 |
this.isMaximized = maximized; |
423 | 425 |
} |
424 |
|
|
426 |
|
|
425 | 427 |
public void setMaximizable(boolean maximizable) { |
426 | 428 |
this.maximizable = maximizable; |
427 | 429 |
} |
... | ... | |
453 | 455 |
} |
454 | 456 |
|
455 | 457 |
public void setNormalBounds(Rectangle normalBounds) { |
456 |
Rectangle oldBounds = new Rectangle(this.normalX, this.normalY,
|
|
458 |
Rectangle oldBounds = new Rectangle(this.normalX, this.normalY, |
|
457 | 459 |
this.normalWidth, this.normalHeight); |
458 | 460 |
support.firePropertyChange("normalBounds", oldBounds, normalBounds); |
459 | 461 |
support.firePropertyChange("normalX", this.normalX, normalBounds.x); |
... | ... | |
512 | 514 |
public boolean isMaximized() { |
513 | 515 |
return this.isMaximized; |
514 | 516 |
} |
515 |
|
|
517 |
|
|
516 | 518 |
/** |
517 | 519 |
* Checks if the geometry of this window should be persisted in the |
518 | 520 |
* project file. This is set by the persistWindow(boolean) method, |
519 | 521 |
* and the default value is true. |
520 |
*
|
|
522 |
* |
|
521 | 523 |
* @return True if the geometry of this window should be persisted |
522 | 524 |
* in the project files, false otherwise. |
523 | 525 |
*/ |
524 | 526 |
public boolean checkPersistence() { |
525 | 527 |
return this.persistWindow; |
526 | 528 |
} |
527 |
|
|
529 |
|
|
528 | 530 |
/** |
529 | 531 |
* Set whether the geometry of this window should be persisted in the |
530 | 532 |
* project files. |
531 |
*
|
|
533 |
* |
|
532 | 534 |
* @param persist |
533 | 535 |
*/ |
534 | 536 |
public void setPersistence(boolean persist) { |
535 | 537 |
this.persistWindow = persist; |
536 | 538 |
} |
537 |
|
|
539 |
|
|
538 | 540 |
/** |
539 | 541 |
* Gets the window properties in an XMLEntity object, suitable |
540 | 542 |
* for persistence. |
... | ... | |
567 | 569 |
} |
568 | 570 |
return xml; |
569 | 571 |
} |
570 |
|
|
571 |
|
|
572 |
|
|
573 |
|
|
572 | 574 |
public static WindowInfo createFromXMLEntity(XMLEntity xml) |
573 | 575 |
{ |
574 | 576 |
WindowInfo result = new WindowInfo(); |
... | ... | |
595 | 597 |
|
596 | 598 |
return result; |
597 | 599 |
} |
598 |
|
|
600 |
|
|
599 | 601 |
public void getPropertiesFromXMLEntity(XMLEntity xml) |
600 | 602 |
{ |
601 | 603 |
this.x = xml.getIntProperty("X"); |
Also available in: Unified diff