[Spedit-commits] CVS: prototype/Sources/net/sourceforge/spedit/ui AttributesDisplay.java,1.3,1.4 Blo
Status: Planning
Brought to you by:
krunte
|
From: S?bastien P. <kaz...@us...> - 2001-11-28 13:14:41
|
Update of /cvsroot/spedit/prototype/Sources/net/sourceforge/spedit/ui
In directory usw-pr-cvs1:/tmp/cvs-serv1688/net/sourceforge/spedit/ui
Modified Files:
AttributesDisplay.java BlockView.java LabelView.java
ParagraphView.java
Log Message:
New feature in XMLViewFactory is ancestor checking for XMLInformation.
Views have been slightly modified, mainly JavaDoc. Styleable is more robust
and provides support for the new view layout mechanism.
Index: AttributesDisplay.java
===================================================================
RCS file: /cvsroot/spedit/prototype/Sources/net/sourceforge/spedit/ui/AttributesDisplay.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AttributesDisplay.java 2001/11/27 10:31:41 1.3
--- AttributesDisplay.java 2001/11/28 13:14:37 1.4
***************
*** 3,7 ****
// Module : GUI-Views
// ClassName : AttributesDisplay
! // Version : 0.90
// Type :
//
--- 3,7 ----
// Module : GUI-Views
// ClassName : AttributesDisplay
! // Version : 0.95
// Type :
//
***************
*** 14,19 ****
// ----------------------------------------------------------------------------
// Creation date : 13-Nov-2001
! // Last mod. : 21-Nov-2001
// History :
// 21-Nov-2001 Much cleaner for sublacssing, only displays
// children so display intergrated well with the
--- 14,21 ----
// ----------------------------------------------------------------------------
// Creation date : 13-Nov-2001
! // Last mod. : 27-Nov-2001
// History :
+ // 27-Nov-2001 Moved init code to DefaultAttributeDisplay.
+ // (sp)
// 21-Nov-2001 Much cleaner for sublacssing, only displays
// children so display intergrated well with the
***************
*** 74,88 ****
this.element = element;
setFont(view.getStyleSheet().font);
- init();
}
- protected void init()
- {
- add(new JTable(new AttributesModel(element)));
- }
-
public void paint(Graphics g)
{
- //System.out.println("Repaiting "+model.element.getName());
paintChildren(g);
}
--- 76,83 ----
***************
*** 200,203 ****
--- 195,210 ----
}
+ /**
+ * This is the default attributes display implementation that displays the attributes
+ * either as a vertical or an horizontal table.
+ */
+ public class DefaultAttributesDisplay extends AttributesDisplay
+ {
+ public DefaultAttributesDisplay(XMLElementWrapper element, WrapperView view)
+ {
+ super(element, view);
+ add(new JTable(new AttributesModel(element)));
+ }
+ }
}
Index: BlockView.java
===================================================================
RCS file: /cvsroot/spedit/prototype/Sources/net/sourceforge/spedit/ui/BlockView.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BlockView.java 2001/11/27 10:31:41 1.2
--- BlockView.java 2001/11/28 13:14:37 1.3
***************
*** 16,20 ****
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession.(sp)
// 27-Sep-2001 First implementation. (SP)
//
--- 16,21 ----
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession. Code
! // cleanup and delegtaion to WrapperView.(sp)
// 27-Sep-2001 First implementation. (SP)
//
Index: LabelView.java
===================================================================
RCS file: /cvsroot/spedit/prototype/Sources/net/sourceforge/spedit/ui/LabelView.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** LabelView.java 2001/11/27 10:31:41 1.3
--- LabelView.java 2001/11/28 13:14:37 1.4
***************
*** 16,20 ****
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession.(sp)
// 07-Nov-2001 Fixed selcetion problem. The solution was
// to copy the sourcecode from the JDK 1.3.1 and modify
--- 16,21 ----
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession. Code
! // cleanup and delegtaion to WrapperView.(sp)
// 07-Nov-2001 Fixed selcetion problem. The solution was
// to copy the sourcecode from the JDK 1.3.1 and modify
Index: ParagraphView.java
===================================================================
RCS file: /cvsroot/spedit/prototype/Sources/net/sourceforge/spedit/ui/ParagraphView.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ParagraphView.java 2001/11/27 10:31:41 1.3
--- ParagraphView.java 2001/11/28 13:14:37 1.4
***************
*** 16,20 ****
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession.(sp)
// 27-Sep-2001 First implementation. (sp)
//
--- 16,21 ----
// Last mod. : 27-Nov-2001
// History :
! // 27-Nov-2001 Updated inset accession. Code
! // cleanup and delegtaion to WrapperView.(sp)
// 27-Sep-2001 First implementation. (sp)
//
|