Added Separator Peer (so code is consistent)

This commit is contained in:
nathan 2017-11-15 15:16:40 +01:00
parent f44374d11d
commit 740348b6c4
2 changed files with 35 additions and 0 deletions

View File

@ -15,6 +15,8 @@
*/
package dorkbox.systemTray;
import dorkbox.systemTray.peer.SeparatorPeer;
/**
* This represents a common menu-spacer entry, that is cross platform in nature.
* <p>
@ -39,4 +41,14 @@ class Separator extends Entry {
Separator() {
super();
}
/**
* @param peer the platform specific implementation for all actions for this type
* @param parent the parent of this menu, null if the parent is the system tray
* @param systemTray the system tray (which is the object that sits in the system tray)
*/
public
void bind(final SeparatorPeer peer, final Menu parent, final SystemTray systemTray) {
super.bind(peer, parent, systemTray);
}
}

View File

@ -0,0 +1,23 @@
/*
* Copyright 2016 dorkbox, llc
*
* 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 dorkbox.systemTray.peer;
/**
* Internal component used to bind the API to the implementation
*/
public
interface SeparatorPeer extends EntryPeer {
}