All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ardor3d.extension.ui.text.CopyPasteManager Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/**
 * Copyright (c) 2008-2012 Ardor Labs, Inc.
 *
 * This file is part of Ardor3D.
 *
 * Ardor3D is free software: you can redistribute it and/or modify it 
 * under the terms of its license which may be found in the accompanying
 * LICENSE file or at .
 */

package com.ardor3d.extension.ui.text;

public enum CopyPasteManager {
    INSTANCE;

    private CopyPasteImpl _impl;

    public void setCopyPasteImpl(final CopyPasteImpl impl) {
        _impl = impl;
    }

    public String getClipBoardContents() {
        if (_impl == null) {
            _impl = new AwtCopyPasteImpl();
        }
        return _impl.getClipBoardContents();
    }

    public void setClipBoardContents(final String contents) {
        if (_impl == null) {
            _impl = new AwtCopyPasteImpl();
        }
        _impl.setClipBoardContents(contents);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy