Examples of saveState()


Examples of com.lowagie.text.pdf.PdfContentByte.saveState()

            float adjust = helv.getWidthPoint("0", 12);
            cb.setTextMatrix(document.right() - textSize - adjust, textBase);
            cb.showText(text);
            cb.endText();
            cb.addTemplate(tpl, document.right() - adjust, textBase);
            cb.saveState();
        }
    }
}
View Full Code Here

Examples of com.python.pydev.analysis.additionalinfo.InfoFactory.saveState()

        }

        protected void storeItemToMemento(Object item, IMemento element) {
            AdditionalInfoAndIInfo resource = (AdditionalInfoAndIInfo) item;
            InfoFactory infoFactory = new InfoFactory(resource);
            infoFactory.saveState(element);
        }

    }

    public ICallbackWithListeners getOnControlCreated() {
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.store.SynchronizationMemento.saveState()

            // ensures that the file exists
            assertTrue( f.exists() );

            // create a backup
            m.saveState();

            // ensures that the backup exists
            assertTrue( getBackupFile(f).exists() );
            System.out.println("Memento after backup: "
                + getBackupFile(f).getPath());
View Full Code Here

Examples of com.tommytony.war.Warzone.saveState()

    String newName = this.args[0];
    String oldName = zone.getName();
   
    // Update the name
    zone.setName(newName);
    zone.saveState(false); // Save new volume files. Don't clear anything, we already unloaded.
    WarzoneYmlMapper.save(zone)// Save new config files for warzone.
       
    // Get rid of old unloaded zone instance
    War.war.getWarzones().remove(zone);
       
View Full Code Here

Examples of de.mindcrimeilab.xsanalyzer.util.JFileChooserMemento.saveState()

        Memento memento = new JFileChooserMemento(jfc);
        memento.restoreState(settings);

        int result = jfc.showOpenDialog(getParentWindowControl());
        if (JFileChooser.APPROVE_OPTION == result) {
            memento.saveState(settings);
            XsAnalyzerApplicationModel appmodel = (XsAnalyzerApplicationModel) Application.instance().getApplicationContext().getBean("applicationModel");
            appmodel.setSchemaFile(jfc.getSelectedFile());
            appmodel.setSchemaModel(XsModelFactory.createXsModel(appmodel.getSchemaFile()));
            Application.instance().getApplicationContext().publishEvent(new XsAnalyzerApplicationEvent(EventType.OPEN, this));
        }
View Full Code Here

Examples of javax.faces.component.PartialStateHolder.saveState()

    private Object saveBehaviorListenersList(FacesContext facesContext)
    {
        PartialStateHolder holder = (PartialStateHolder) _behaviorListeners;
        if (initialStateMarked() && _behaviorListeners != null && holder.initialStateMarked())
        {               
            Object attachedState = holder.saveState(facesContext);
            if (attachedState != null)
            {
                return new _AttachedDeltaWrapper(_behaviorListeners.getClass(),
                        attachedState);
            }
View Full Code Here

Examples of javax.faces.component.PartialStateHolder.saveState()

                {
                    //Delta
                    PartialStateHolder holder = (PartialStateHolder) value;
                    if (!holder.isTransient())
                    {
                        Object attachedState = holder.saveState(context);
                        if (attachedState != null)
                        {
                            nullDelta = false;
                        }
                        lst[i] = new _AttachedDeltaWrapper(value.getClass(),
View Full Code Here

Examples of javax.faces.component.PartialStateHolder.saveState()

                {
                    //Delta
                    PartialStateHolder holder = (PartialStateHolder) value;
                    if (!holder.isTransient())
                    {
                        Object attachedState = holder.saveState(context);
                        if (attachedState != null)
                        {
                            nullDelta = false;
                        }
                        lst[i] = new _AttachedDeltaWrapper(value.getClass(),
View Full Code Here

Examples of javax.faces.component.PartialStateHolder.saveState()

    private Object saveBehaviorListenersList(FacesContext facesContext)
    {
        PartialStateHolder holder = (PartialStateHolder) _behaviorListeners;
        if (initialStateMarked() && _behaviorListeners != null && holder.initialStateMarked())
        {               
            Object attachedState = holder.saveState(facesContext);
            if (attachedState != null)
            {
                return new _AttachedDeltaWrapper(_behaviorListeners.getClass(),
                        attachedState);
            }
View Full Code Here

Examples of javax.faces.component.PartialStateHolder.saveState()

    private Object saveBehaviorListenersList(FacesContext facesContext)
    {
        PartialStateHolder holder = (PartialStateHolder) _behaviorListeners;
        if (initialStateMarked() && _behaviorListeners != null && holder.initialStateMarked())
        {               
            Object attachedState = holder.saveState(facesContext);
            if (attachedState != null)
            {
                return new _AttachedDeltaWrapper(_behaviorListeners.getClass(),
                        attachedState);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.