Author: mindbridge Date: Sun Mar 12 02:38:59 2006 New Revision: 385273 URL: http://svn.apache.org/viewcvs?rev=385273&view=rev Log: Modifying the Table component so that it works correctly even if the data is initialized in pageBeginRender
Added: jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableAction.java Modified: jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableModelSource.java Added: jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableAction.java URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableAction.java?rev=385273&view=auto ============================================================================== --- jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableAction.java (added) +++ jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableAction.java Sun Mar 12 02:38:59 2006 @@ -0,0 +1,36 @@ +// Copyright 2004, 2005, 2006 The Apache Software Foundation +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package org.apache.tapestry.contrib.table.model; + + +/** + * <p>A Table action that needs to be executed at a later time. + * The action may be sorting a given column, or it may be selecting a given page</p> + * <ul> + * <li></li> + * </ul> + * + * @author teo + * @since 4.1 + */ +public interface ITableAction +{ + /** + * Executes the desired action + * + * @param objTableModel the table model on which the action should be executed + */ + void executeTableAction(ITableModel objTableModel); +} Modified: jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableModelSource.java URL: http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableModelSource.java?rev=385273&r1=385272&r2=385273&view=diff ============================================================================== --- jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableModelSource.java (original) +++ jakarta/tapestry/trunk/contrib/src/java/org/apache/tapestry/contrib/table/model/ITableModelSource.java Sun Mar 12 02:38:59 2006 @@ -42,4 +42,10 @@ * and automatic state storage will therefore be hard to implement. */ void fireObservedStateChange(); + + /** + * Stores the provided table action + */ + public void storeTableAction(ITableAction action); + } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]