text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.swingdeco.containers;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.Rectangle;
import java.uti... |
package it.tukano.swingdeco.containers;
import java.awt.Component;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
import javax.swing.WindowConstants;
/**
* JFrame exten... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.swingdeco.containers;
import java.awt.BorderLayout;
import java.awt.Component;
import javax.swing.JPanel;
import javax.swing.JToolBar;
/**
* A panel that displayes a component and a set of buttons
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.swingdeco.containers;
import com.kitfox.svg.*;
import java.awt.*;
import java.net.URI;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util... |
/**
* Containers' related utilities
*/
package it.tukano.swingdeco.containers;
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.swingdeco.containers;
import java.awt.Component;
import javax.swing.JTabbedPane;
/**
*
* @author utente3
*/
public class JTabbedPaneExt extends JTabbedPane {
/* default serial version code... |
package it.tukano.swingdeco.containers;
import it.tukano.collections.ListExt;
import it.tukano.fun.Function1;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Insets;
import java.awt.LayoutManager;
import javax.swing.Bord... |
package it.tukano.swingdeco.containers;
import java.awt.Component;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
public class TitledWrapper extends JPanel {
private static final long serialVersionUID = 0;
public TitledWrapper(String title, Component c) {
su... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.swingdeco.containers;
import java.awt.Dimension;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import javax.swing.Scrollable;
/**
* A scrollable panel that uses a DynamicGridLayout
*... |
package it.tukano.swingdeco.containers;
import it.tukano.collections.LinkedListExt;
import it.tukano.collections.ListExt;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.util.Collectio... |
package it.tukano.swingdeco.containers;
import it.tukano.swingdeco.controls.JButtonExt;
import java.awt.Component;
import javax.swing.Icon;
import javax.swing.JToolBar;
public class JToolBarExt extends JToolBar {
/* Serial version of this class */
private static final long serialVersionUID = 0;
/**
... |
package it.tukano.swingdeco.containers;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.LayoutManager;
/**
* Layout components in a vertical row
*/
public class VerticalLayout implements LayoutManager {
private int margin;
/**
... |
package it.tukano.swingdeco.containers;
import it.tukano.fun.Function1;
import it.tukano.fun.Function2;
import it.tukano.fun.Tuple2;
import it.tukano.fun.VFunction3;
import it.tukano.swingdeco.containers.ResizablePanel.Edge;
import it.tukano.swingdeco.draganddrop.DndUtilities;
import java.awt.BorderLayout;
import java... |
package it.tukano.swingdeco.containers;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JScrollPane;
/** JScrollPane extension */
public class JScrollPaneExt extends JScrollPane {
/* Serial version of this class */
private static final long serialVersionUID = 0;
/**
* Insta... |
package it.tukano.swingdeco.filechooser;
import it.tukano.fun.Tuple2;
import it.tukano.io.FileExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JButtonExt;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.BorderLayout;
import java.awt.Component;
import java.io.File... |
/**
* JFileChooser extension and related items
*/
package it.tukano.swingdeco.filechooser;
|
package it.tukano.swingdeco.filechooser;
import it.tukano.io.FileExt;
import java.io.File;
import javax.swing.filechooser.FileFilter;
/**
* A file filter that checks the name of the file against a set of extensions
* @author pgi
*/
public class ExtensionFileFilter extends FileFilter {
private final String desc... |
package it.tukano.swingdeco;
import it.tukano.reflection.MethodExt;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ResourceBundle;
import javax.swing.AbstractButton;
import java... |
/**
* JTree-related extensions
*/
package it.tukano.swingdeco.tree;
|
package it.tukano.swingdeco.tree;
import it.tukano.collections.ListExt;
import it.tukano.fun.Function1;
import it.tukano.fun.Function2;
import it.tukano.fun.VFunction1;
import it.tukano.fun.VFunction3;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JButtonExt;
import it.tukano.swi... |
package it.tukano.swingdeco.tree;
import it.tukano.fun.Function1;
import it.tukano.fun.Function2;
import it.tukano.fun.OptionalValue;
import it.tukano.swingdeco.containers.JScrollPaneExt;
import it.tukano.swingdeco.event.InputAdapter;
import it.tukano.swingdeco.event.MouseAdapterExt;
import it.tukano.swingdeco.event.M... |
package it.tukano.swingdeco.event;
import java.awt.Component;
import java.awt.Point;
import java.awt.event.MouseEvent;
import javax.swing.SwingUtilities;
/**
* Extended mouse event
* @author pgi
*/
public class MouseEventExt {
private final MouseEvent source;
/**
* Instance initializer
*/
p... |
/**
* Events and listeners
*/
package it.tukano.swingdeco.event;
|
package it.tukano.swingdeco.event;
import java.util.EventListener;
/**
* Listener for the VarEvent<T> event
* @author pgi
* @param V the type of the variable
* @param <T> the type of the value
*/
public interface VarEventListener<V, T> extends EventListener {
/**
* Notify that a var event has been fire... |
package it.tukano.swingdeco.event;
import java.util.EventObject;
/**
* An event that notify the state of a variable.
* @author pgi
* @param <V> type of the variable
* @param <T> the type of the value
*/
public class VarEvent<V, T> extends EventObject {
private static final long serialVersionUID = 0;
/*... |
package it.tukano.swingdeco.event;
import java.awt.Component;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListe... |
package it.tukano.swingdeco.event;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* A var event source
* @author pgi
* @param <V> the type of the variable for the var event sent by this source
* @param <T> the type of the value for the var event sent by this source
*/
public class V... |
package it.tukano.swingdeco.event;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.SwingUtilities;
public abstract class MouseAdapterExt implements MouseListener {
/**
* Instance initializer
*/
public MouseAdapterExt() {}
public void mouseClicked(Mouse... |
package it.tukano.xml;
import it.tukano.io.FileExt;
import it.tukano.io.FileExt.OutputStreamCall;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.StringReader;
import java.io.StringWriter;
im... |
/**
* XML utilities
*/
package it.tukano.xml;
|
package it.tukano.xprint;
import it.tukano.io.FileExt;
import it.tukano.xml.XmlDoc;
import it.tukano.xml.XmlDoc.XmlNode;
import java.util.ArrayList;
import java.util.List;
public class XPrint {
public static class CssStyle {
private XmlNode node;
private void create(... |
/**
* Extensions to elements of the lang package
*/
package it.tukano.lang;
|
package it.tukano.lang;
import it.tukano.collections.HashMapExt;
import it.tukano.collections.MapExt;
import it.tukano.text.TextFormat;
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.util... |
package it.tukano.lang;
import it.tukano.io.FileExt;
import java.io.File;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Icon;
import javax.swing.filechooser.FileSystemView;
public class SystemExt {
private static final Object LOCK = new Object();
private static Icon FOLD... |
package it.tukano.fun;
/**
* A function that converts a type into another one
* @author pgi
* @param <OUT>
* @param <IN>
*/
public class Cast<IN, OUT> implements Function1<IN, OUT> {
/** The conversion type */
private final Class<OUT> type;
/**
* Instance initializer
*/
public Cast(Cla... |
package it.tukano.fun;
/**
* No argument callback
* @author pgi
* @param <T> the returned type
*/
public interface Function0<T> {
/**
* Executes this function and returns the value
* @return the value of this function
*/
T apply();
}
|
package it.tukano.fun;
public class StartsWith implements Function1<Object, Boolean> {
private final String prefix;
public StartsWith(String prefix) {
this.prefix = prefix;
}
public Boolean apply(Object p) {
if(p == null) return false;
return p.toString().startsWith(prefi... |
package it.tukano.fun;
/**
* A function with 2 arguments
* @author pgi
* @param <PARAM1> the type of the first argument
* @param <PARAM2> the type of the second argument
* @param <RESULT> the type of the returned value
*/
public interface Function2<PARAM1, PARAM2, RESULT> {
/**
* Function's body.
... |
package it.tukano.fun;
/**
* A function whose doApply method is called in the EDT. Notice that there is no
* synchronization between the apply and the doApply call so the HB relationship
* should be enforced somewhere else.
* @author pgi
* @param <IN> the type of the parameter of this function
*/
public abstract... |
package it.tukano.fun;
/**
* A function with 3 arguments that returns nothing
* @author pgi
* @param <P1> the first parameter's type
* @param <P2> the second parameter's type
* @param <P3> the third parameter's type
*/
public abstract class VFunction3<P1, P2, P3> implements Function3<P1, P2, P3, Void> {
/**... |
package it.tukano.fun;
import java.util.Iterator;
/**
* A value that can be null
* @author pgi
* @param <T>
*/
public class OptionalValue<T> implements Iterable<T> {
/**
* Instance creator
* @param <T> the value type
* @param arg the value
* @return a new optionalvalue
*/
public ... |
package it.tukano.fun;
/**
* Returns true if an instance equals the argument of the function
* @author pgi
*/
public class Equals implements Function1<Object, Boolean> {
private final Object instance;
/**
* Instance initializer
*/
public Equals(Object instance) {
this.instance = insta... |
/**
* Poor's man functional utilities
*/
package it.tukano.fun;
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.fun;
/**
* A 4 elements' tuple
* @author utente3
*/
public class Tuple4<A,B,C,D> {
/**
* Returns a new Tuple4
* @param <A> the type of the first element
* @param <B> the type of... |
package it.tukano.fun;
/**
* An immutable pair of values
* @author pgi
* @param <A> the type of the first element
* @param <B> the type of the second element
*/
public class Tuple2<A, B> {
/**
* Instance creator (the compiler can infer argument types)
* @param <A> the type of the first argument
... |
package it.tukano.fun;
/**
* A function
* @author pgi
* @param <PARAM> the type of the parameter
* @param <RESULT> the type of the result
*/
public interface Function1<PARAM, RESULT> {
/**
* Applies this function to the parameter and returns the result
* @param p the parameter
* @return the re... |
package it.tukano.fun;
/**
* A function that takes three parameters and returns a value
* @author pgi
* @param <P1> the first value's type
* @param <P2> the second value's type
* @param <P3> the third value's type
* @param <R> the result type
*/
public interface Function3<P1, P2, P3, R> {
/**
* Applie... |
package it.tukano.fun;
/**
* Three immutable values
* @author pgi
* @param <A> the first element of the tuple
* @param <B> the second element of the tuple
* @param <C> the third element of the tuple
*/
public class Tuple3<A, B, C> {
/**
* Creator
* @param <A> the type of the first element
* @... |
package it.tukano.fun;
/**
* A function1 that returns void
* @author pgi
* @param <PARAM>
*/
public abstract class VFunction1<PARAM> implements Function1<PARAM, Void> {
/**
* Instance initializer
*/
public VFunction1() {
}
/**
* Calls doApply and returns null
* @param p the pa... |
package it.tukano.fun;
/**
* Checks if an instance is of some type
* @author pgi
*/
public class InstanceOf implements Function1<Object, Boolean> {
private final Class<?> TYPE;
/**
* Instance initializer
* @param type the type to use in the check
*/
public InstanceOf(Class<?> type) {
... |
package it.tukano.fun;
import java.util.Collection;
/**
* Given a collection, returns true if it contains some element
* @author pgi
* @param <A>
*/
public class Contains<A> implements Function1<A, Boolean> {
private final Collection<? extends A> set;
/**
* Initializes this function
* @param ... |
package it.tukano.fun;
/**
* A function with two parameters that returns null
* @author pgi
* @param <PARAM1> the type of the first parameter
* @param <PARAM2> the type of the second parameter
*/
public abstract class VFunction2<PARAM1, PARAM2> implements Function2<PARAM1, PARAM2, Void> {
/**
* Instance... |
package it.tukano.app;
import it.tukano.fun.Function1;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* This module holds references to the other modules
* @author pgi
*/
public class AppContext implements AppModule {
/** The list of modules registerd... |
/**
* A basic (very basic) modular framework for applications
*/
package it.tukano.app;
|
package it.tukano.app;
import it.tukano.fun.Function1;
/**
* A module of an application
* @author pgi
*/
public interface AppModule {
/**
* Initializes this module
* @param context the context of the application
*/
void initModule(AppModule context);
/**
* Stars this module
*... |
package it.tukano.app;
import it.tukano.app.AppModule;
import it.tukano.fun.Function1;
import it.tukano.log.Log;
import it.tukano.reflection.MethodExt;
/**
* Base class for the modules
* @author pgi
*/
public abstract class AbstractAppModule implements AppModule {
/**
* The application of this module. In... |
package it.tukano.beanstore;
import it.tukano.collections.ListExt;
import it.tukano.fun.Function1;
import it.tukano.fun.OptionalValue;
import it.tukano.io.FileExt.InputStreamCall;
import it.tukano.io.FileExt.OutputStreamCall;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOExc... |
package it.tukano.beanstore;
/**
* Runtime exception thrown by the bean store to notify that something went wrong
* @author pgi
*/
public class BeanStoreException extends RuntimeException {
private static final long serialVersionUID = 0;
/**
* Instance initializer
* @param cause the cause of thi... |
package it.tukano.beanstore;
import java.math.BigDecimal;
/**
* This bean is used to store the value of the uid base. The uid base is used to
* generate unique identifiers for the beans stored with the BeanStore utility.
* @author pgi
*/
public class UidBean {
private String uid;
/**
* Returns the ... |
/**
* A simple storage utility
*/
package it.tukano.beanstore;
|
package it.tukano.beanstore;
import it.tukano.check.Todo;
import java.io.File;
/**
* A factory for BeanStore instances
* @author pgi
*/
public class BeanStoreFactory {
/**
* Instance initializer
*/
public BeanStoreFactory() {
}
/**
* Creates a new bean store with the given id.
... |
package it.tukano.beanstore;
import it.tukano.collections.LinkedListExt;
import it.tukano.collections.ListExt;
import it.tukano.fun.Function1;
import it.tukano.fun.OptionalValue;
import it.tukano.io.FileExt;
import it.tukano.io.FileExt.InputStreamCall;
import it.tukano.io.FileExt.OutputStreamCall;
import it.tukano.io.... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.misc;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JFrameExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JButtonExt;
import it.tukano... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.misc;
import it.tukano.collections.ArrayListExt;
import it.tukano.collections.ListExt;
/**
* A term
* @author utente4
*/
public class Term {
public static void main(String[] args) {
Ter... |
/**
* Uncategorized stuff
*/
package it.tukano.misc;
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.misc;
import java.awt.Component;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.EventObject;
import javax.swing.AbstractCellEditor;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.misc;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JPopupMenuExt;
import it.tukano.swingdeco.text.JTextPaneExt;
import it.tukano.swingdeco.text.SimpleAttributeSe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JCheckBoxExt;
import java.awt.BorderLayout;
impor... |
package it.tukano.odt;
import it.tukano.collections.MapExt;
import it.tukano.fun.Function1;
import it.tukano.fun.Tuple2;
import it.tukano.io.FileExt;
import it.tukano.io.MemBuffer;
import it.tukano.io.Zipper;
import it.tukano.jpgi.test.SvgContainer;
import it.tukano.lang.StringExt;
import it.tukano.reflection.MethodEx... |
/* A layout manager that uses a odt file to set named bounds */
package it.tukano.odt;
import it.tukano.collections.HashMapExt;
import it.tukano.collections.MapExt;
import it.tukano.io.FileExt;
import it.tukano.io.Zipper;
import it.tukano.xml.XmlDoc;
import it.tukano.xml.XmlDoc.XmlNode;
import java.awt.Component;
impo... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.text.StringScanner;
import javax.swing.JCheckBox;
/**
*
* @author utente4
*/
public class OdtOptio... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
/**
*
* @author utente4
*/
public class OdtTableRow {
private final String START = "<table:table-row>";
private final String END = "</table:table-row>";
private final String TO... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JComboBoxExt;
import java.awt.GridLayout;
import... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Function0;
import it.tukano.fun.Function1;
import it.tukano.io.FileExt;
import it.tukano.io.MemBuffer;
import it.tukano.io.Zipper;
import it.tukano.lang.StringExt;
... |
package it.tukano.odt;
import it.tukano.collections.HashMapExt;
import it.tukano.collections.LinkedListExt;
import it.tukano.collections.ListExt;
import it.tukano.collections.MapExt;
import it.tukano.fun.Function1;
import it.tukano.fun.Function3;
import it.tukano.fun.Tuple2;
import it.tukano.fun.VFunction2;
import it.... |
package it.tukano.odt;
import it.tukano.check.Todo;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.reflection.MethodExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.containers.JToolBarExt;
import it.tukano.swingdeco.controls.JCheckBoxExt;
import java.awt.... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.JTextAreaExt;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JScrollPane;
public class OdtStringEditor extends OdtFiel... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.DigitsDocument;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
public class OdtNumericEdit... |
package it.tukano.odt;
import it.tukano.lang.StringExt;
import it.tukano.text.StringScanner;
import it.tukano.xml.XmlDoc.XmlNode;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Properties;
/**
* Campo di un "form" open document.
* @author pgi
*/
public class Od... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.swingdeco.ImageIconExt;
import javax.swing.Icon;
/**
*
* @author utente4
*/
public class OdtConfiguration {
private static OdtConfiguration instance = new OdtConfigur... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.fun.VFunction1;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JButtonExt;
imp... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.swingdeco.containers.JToolBarExt;
import java.awt.BorderLayout;
import javax.swing.JPanel;
/**
* Custom component that wraps the odt form editor
* @author utente3
*/
public c... |
/**
* Utility to use a odt document as a form. The content.xml contains fields
* placeholders as text embedded into {} tokens. The meta.xml contains
* fields' descriptors as meta:user-defined elements. The element has the form:
* name=name of the field as is appears in the content.xml, withouth {}
* content of the... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.controls.JCheckBoxExt;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* A c... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
public class OdtIntegerEditor extends OdtFieldEditor {
/* default seri... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
/**
*
* @author utente4
*/
public interface OdtFieldContext {
public OdtField getField(String name);
}
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.io.FileExt;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JButtonExt;
import it.tukano.swingdeco.... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.jpgi.test.DecimalSpeller;
import it.tukano.lang.StringExt;
import it.tukano.log.Log;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.DecimalDocument;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.Grid... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import java.util.Properties;
import javax.swing.JCheckBox;
/**
*
* @author utente4
*/
public class OdtOptionalStringEditor extends... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
public class OdtDecimalEditor extends OdtFieldEditor {
/* default ser... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.odt;
import it.tukano.text.StringScanner;
/**
*
* @author utente4
*/
public class OdtParagraph {
public static int getElementEndIndex(String parEnd, String xml, String token) {
int... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.text.JTextFieldExt;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
public class OdtVarcharEditor extends OdtFieldEditor {
/* default seri... |
package it.tukano.odt;
import it.tukano.fun.Tuple2;
import it.tukano.lang.StringExt;
import it.tukano.swingdeco.containers.JPanelExt;
import it.tukano.swingdeco.controls.JCheckBoxExt;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
... |
package it.tukano.jpgi.test;
import it.tukano.io.FileExt;
import it.tukano.io.Zipper;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author utente4
*/
public cl... |
package it.tukano.jpgi.test;
import it.tukano.reflection.MethodExt;
import it.tukano.swingdeco.containers.JFrameExt;
import it.tukano.swingdeco.table.JTableExt;
import java.awt.BorderLayout;
public class Main {
public static void main(final String[] args) {
new MethodExt(new Main(), "start").callOnEdt();... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.tukano.jpgi.test;
import it.tukano.lang.StringExt;
import it.tukano.log.Log;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Locale;
import java.util.Scanne... |
package it.tukano.jpgi.test;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.LayoutManager;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.AffineTransform;
import java.awt.geom.Dimension2D;
import ja... |
/*
* Copyright 2011 Google Inc.
*
* 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... |
/*
* Copyright 2011 Google Inc.
*
* 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... |
/*
* Copyright 2011 Google Inc.
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.