Browse Source

Added pages for every item of menu. Content is still missing.

Fixed #307 Feature Browser display UIDL on some menu items, e.g. UI Components

svn changeset:487/svn branch:toolkit
tags/6.7.0.beta1
Jani Laakso 17 years ago
parent
commit
211cdf2fe9

+ 12
- 5
src/com/itmill/toolkit/demo/features/FeatureBrowser.java View File

@@ -118,7 +118,8 @@ public class FeatureBrowser extends CustomComponent implements
left.addComponent(close);

// Test component
registerFeature("/UI Components", new UIComponents());
registerFeature("/UI Components", new IntroComponents());
registerFeature("/UI Components/Basic", new IntroBasic());
registerFeature("/UI Components/Basic/Text Field",
new FeatureTextField());
registerFeature("/UI Components/Basic/Date Field",
@@ -127,12 +128,15 @@ public class FeatureBrowser extends CustomComponent implements
registerFeature("/UI Components/Basic/Form", new FeatureForm());
registerFeature("/UI Components/Basic/Label", new FeatureLabel());
registerFeature("/UI Components/Basic/Link", new FeatureLink());
registerFeature("/UI Components/Item Containers",
new IntroItemContainers());
registerFeature("/UI Components/Item Containers/Select",
new FeatureSelect());
registerFeature("/UI Components/Item Containers/Table",
new FeatureTable());
registerFeature("/UI Components/Item Containers/Tree",
new FeatureTree());
registerFeature("/UI Components/Layouts", new IntroLayouts());
registerFeature("/UI Components/Layouts/Ordered Layout",
new FeatureOrderedLayout());
registerFeature("/UI Components/Layouts/Grid Layout",
@@ -144,17 +148,20 @@ public class FeatureBrowser extends CustomComponent implements
new FeatureTabSheet());
registerFeature("/UI Components/Layouts/Window", new FeatureWindow());
// Disabled for now
// registerFeature("/UI Components/Layouts/Frame Window",
// new FeatureFrameWindow());
// registerFeature("/UI Components/Layouts/Frame Window",
// new FeatureFrameWindow());
registerFeature("/UI Components/Data handling", new IntroDataHandling());
registerFeature("/UI Components/Data handling/Embedded Objects",
new FeatureEmbedded());
registerFeature("/UI Components/Data handling/Upload",
new FeatureUpload());
registerFeature("/Data Model", new IntroDataModel());
registerFeature("/Data Model/Properties", new FeatureProperties());
registerFeature("/Data Model/Items", new FeatureItems());
registerFeature("/Data Model/Containers", new FeatureContainers());
registerFeature("/Data Model/Validators", new FeatureValidators());
registerFeature("/Data Model/Buffering", new FeatureBuffering());
registerFeature("/Terminal", new IntroTerminal());
registerFeature("/Terminal/Parameters and URI Handling",
new FeatureParameters());

@@ -163,7 +170,7 @@ public class FeatureBrowser extends CustomComponent implements
features.expandItem(i.next());

// Add demo component and tabs
currentFeature = new FeatureButton();
currentFeature = new FeatureTable();
layout.addComponent(currentFeature);

// Add properties
@@ -220,7 +227,7 @@ public class FeatureBrowser extends CustomComponent implements
PropertyPanel oldProps = (PropertyPanel) i.next();
if (oldProps != null)
right.replaceComponent(oldProps, properties);
else
else
right.addComponent(properties);
properties.setVisible(((Boolean) propertiesSelect
.getValue()).booleanValue());

+ 29
- 7
src/com/itmill/toolkit/demo/features/FeatureBuffering.java View File

@@ -28,14 +28,34 @@

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class FeatureBuffering extends Feature {
protected String getExampleSrc() {
return super.getExampleSrc();
public FeatureBuffering() {
super();
}
protected Component getDemoComponent() {

protected String getTitle() {
return "Buffering";
OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;
return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
@@ -58,11 +78,13 @@ public class FeatureBuffering extends Feature {
+ "immediately updated to the data source.</p>";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getImage()
*/

protected String getImage() {
return "buffering.jpg";
}

protected String getTitle() {
return "Introduction of Data Model Buffering";
}

}

+ 30
- 2
src/com/itmill/toolkit/demo/features/FeatureContainers.java View File

@@ -28,10 +28,32 @@

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class FeatureContainers extends Feature {

protected String getTitle() {
return "Container Data Model";
public FeatureContainers() {
super();
}
protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;
return l;
}

protected String getExampleSrc() {
return "";
}

protected String getDescriptionXHTML() {
@@ -58,7 +80,13 @@ public class FeatureContainers extends Feature {
+ "file system access.</p>";
}


protected String getImage() {
return "containers.jpg";
}

protected String getTitle() {
return "Introduction of Data Model Containers";
}

}

+ 31
- 2
src/com/itmill/toolkit/demo/features/FeatureItems.java View File

@@ -28,12 +28,37 @@

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class FeatureItems extends Feature {

protected String getTitle() {
return "Item Data Model";
public FeatureItems() {
super();
}
protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;
return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "<p>Item is an object, which contains a set of named "
+ "properties. Each property is identified by an "
@@ -52,4 +77,8 @@ public class FeatureItems extends Feature {
return "items.jpg";
}

protected String getTitle() {
return "Introduction of Data Model Item";
}

}

+ 27
- 7
src/com/itmill/toolkit/demo/features/FeatureProperties.java View File

@@ -28,14 +28,32 @@

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class FeatureProperties extends Feature {

protected String getExampleSrc() {
return super.getExampleSrc();
public FeatureProperties() {
super();
}
protected Component getDemoComponent() {

protected String getTitle() {
return "Property Data Model";
OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;
return l;
}

protected String getExampleSrc() {
return "";
}

protected String getDescriptionXHTML() {
@@ -60,11 +78,13 @@ public class FeatureProperties extends Feature {
+ "Label and Tree.</p>";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getImage()
*/

protected String getImage() {
return "properties.jpg";
}

protected String getTitle() {
return "Introduction of Data Model Properties";
}

}

+ 29
- 4
src/com/itmill/toolkit/demo/features/FeatureValidators.java View File

@@ -28,16 +28,37 @@

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class FeatureValidators extends Feature {

protected String getExampleSrc() {
return super.getExampleSrc();
public FeatureValidators() {
super();
}
protected Component getDemoComponent() {

protected String getTitle() {
return "Validators";
OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;
return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "<p>IT Mill Toolkit contains simple, yet powerful validation interface, "
+ "that consists of two parts: Validator and Validatable. Validator is "
@@ -56,4 +77,8 @@ public class FeatureValidators extends Feature {
return "validators.gif";
}

protected String getTitle() {
return "Introduction of Data Model Validators";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroBasic.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroBasic extends Feature {

public IntroBasic() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction of basic UI components";
}

}

src/com/itmill/toolkit/demo/features/UIComponents.java → src/com/itmill/toolkit/demo/features/IntroComponents.java View File

@@ -28,8 +28,37 @@

package com.itmill.toolkit.demo.features;

public class UIComponents extends Feature {
import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroComponents extends Feature {

public IntroComponents() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}
@@ -39,7 +68,7 @@ public class UIComponents extends Feature {
}

protected String getTitle() {
return "";
return "Introduction for UI components";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroDataHandling.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroDataHandling extends Feature {

public IntroDataHandling() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction for data handling";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroDataModel.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroDataModel extends Feature {

public IntroDataModel() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction for data model";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroItemContainers.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroItemContainers extends Feature {

public IntroItemContainers() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction for item containers";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroLayouts.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroLayouts extends Feature {

public IntroLayouts() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction for layouts";
}

}

+ 74
- 0
src/com/itmill/toolkit/demo/features/IntroTerminal.java View File

@@ -0,0 +1,74 @@
/* *************************************************************************
IT Mill Toolkit

Development of Browser User Interfaces Made Easy

Copyright (C) 2000-2006 IT Mill Ltd
*************************************************************************

This product is distributed under commercial license that can be found
from the product package on license.pdf. Use of this product might
require purchasing a commercial license from IT Mill Ltd. For guidelines
on usage, see licensing-guidelines.html

*************************************************************************
For more information, contact:
IT Mill Ltd phone: +358 2 4802 7180
Ruukinkatu 2-4 fax: +358 2 4802 7181
20540, Turku email: info@itmill.com
Finland company www: www.itmill.com
Primary source for information and releases: www.itmill.com

********************************************************************** */

package com.itmill.toolkit.demo.features;

import com.itmill.toolkit.ui.Component;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.OrderedLayout;

public class IntroTerminal extends Feature {

public IntroTerminal() {
super();
}

protected Component getDemoComponent() {

OrderedLayout l = new OrderedLayout();

Label lab = new Label();
lab.setStyle("featurebrowser-none");
l.addComponent(lab);

// Properties
propertyPanel = null;

return l;
}

protected String getExampleSrc() {
return "";
}

/**
* @see com.itmill.toolkit.demo.features.Feature#getDescriptionXHTML()
*/
protected String getDescriptionXHTML() {
return "";
}

protected String getImage() {
return "";
}

protected String getTitle() {
return "Introduction for terminals";
}

}

Loading…
Cancel
Save